Removed redundant call to GetTimeOfDay for Dusk Ball effect (#3701)
This commit is contained in:
parent
26a8c2a5a9
commit
882c5529e0
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue