Removed redundant call to GetTimeOfDay for Dusk Ball effect (#3701)

This commit is contained in:
Eduardo Quezada D'Ottone 2023-12-11 19:17:27 -03:00 committed by GitHub
parent 26a8c2a5a9
commit 882c5529e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14841,7 +14841,8 @@ static void Cmd_handleballthrow(void)
ballMultiplier = 400;
break;
case ITEM_DUSK_BALL:
if ((GetTimeOfDay() == TIME_EVENING || GetTimeOfDay() == TIME_NIGHT) || gMapHeader.cave || gMapHeader.mapType == MAP_TYPE_UNDERGROUND)
i = GetTimeOfDay();
if (i == TIME_EVENING || i == TIME_NIGHT || gMapHeader.cave || gMapHeader.mapType == MAP_TYPE_UNDERGROUND)
ballMultiplier = (B_DUSK_BALL_MODIFIER >= GEN_7 ? 300 : 350);
break;
case ITEM_QUICK_BALL: