mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-17 12:07:38 +01:00
Fixed some comparison operators
This commit is contained in:
parent
f8dabc37ae
commit
9c574f3adb
@ -3650,7 +3650,7 @@ static void Cmd_getexp(void)
|
|||||||
if (holdEffect == HOLD_EFFECT_EXP_SHARE)
|
if (holdEffect == HOLD_EFFECT_EXP_SHARE)
|
||||||
viaExpShare++;
|
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;
|
calculatedExp = gBaseStats[gBattleMons[gBattlerFainted].species].expYield * gBattleMons[gBattlerFainted].level / 5;
|
||||||
#else
|
#else
|
||||||
calculatedExp = gBaseStats[gBattleMons[gBattlerFainted].species].expYield * gBattleMons[gBattlerFainted].level / 7;
|
calculatedExp = gBaseStats[gBattleMons[gBattlerFainted].species].expYield * gBattleMons[gBattlerFainted].level / 7;
|
||||||
@ -3736,7 +3736,7 @@ static void Cmd_getexp(void)
|
|||||||
gBattleMoveDamage = (gBattleMoveDamage * 150) / 100;
|
gBattleMoveDamage = (gBattleMoveDamage * 150) / 100;
|
||||||
if (gBattleTypeFlags & BATTLE_TYPE_TRAINER && B_TRAINER_EXP_MULTIPLIER <= GEN_7)
|
if (gBattleTypeFlags & BATTLE_TYPE_TRAINER && B_TRAINER_EXP_MULTIPLIER <= GEN_7)
|
||||||
gBattleMoveDamage = (gBattleMoveDamage * 150) / 100;
|
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 * 2) + 10];
|
||||||
gBattleMoveDamage /= sExperienceScalingFactors[gBattleMons[gBattlerFainted].level +
|
gBattleMoveDamage /= sExperienceScalingFactors[gBattleMons[gBattlerFainted].level +
|
||||||
GetMonData(&gPlayerParty[gBattleStruct->expGetterMonId], MON_DATA_LEVEL) + 10];
|
GetMonData(&gPlayerParty[gBattleStruct->expGetterMonId], MON_DATA_LEVEL) + 10];
|
||||||
|
Loading…
Reference in New Issue
Block a user