Fixed some comparison operators
This commit is contained in:
parent
f8dabc37ae
commit
9c574f3adb
1 changed files with 2 additions and 2 deletions
|
@ -3650,7 +3650,7 @@ static void Cmd_getexp(void)
|
|||
if (holdEffect == HOLD_EFFECT_EXP_SHARE)
|
||||
viaExpShare++;
|
||||
}
|
||||
#if (B_SCALED_EXP == GEN_5) && (B_SCALED_EXP != GEN_6)
|
||||
#if (B_SCALED_EXP >= GEN_5) && (B_SCALED_EXP != GEN_6)
|
||||
calculatedExp = gBaseStats[gBattleMons[gBattlerFainted].species].expYield * gBattleMons[gBattlerFainted].level / 5;
|
||||
#else
|
||||
calculatedExp = gBaseStats[gBattleMons[gBattlerFainted].species].expYield * gBattleMons[gBattlerFainted].level / 7;
|
||||
|
@ -3736,7 +3736,7 @@ static void Cmd_getexp(void)
|
|||
gBattleMoveDamage = (gBattleMoveDamage * 150) / 100;
|
||||
if (gBattleTypeFlags & BATTLE_TYPE_TRAINER && B_TRAINER_EXP_MULTIPLIER <= GEN_7)
|
||||
gBattleMoveDamage = (gBattleMoveDamage * 150) / 100;
|
||||
#if (B_SCALED_EXP == GEN_5) && (B_SCALED_EXP != GEN_6)
|
||||
#if (B_SCALED_EXP >= GEN_5) && (B_SCALED_EXP != GEN_6)
|
||||
gBattleMoveDamage *= sExperienceScalingFactors[(gBattleMons[gBattlerFainted].level * 2) + 10];
|
||||
gBattleMoveDamage /= sExperienceScalingFactors[gBattleMons[gBattlerFainted].level +
|
||||
GetMonData(&gPlayerParty[gBattleStruct->expGetterMonId], MON_DATA_LEVEL) + 10];
|
||||
|
|
Loading…
Reference in a new issue