Renamed OW type effectiveness function for clarity (#5917)
This commit is contained in:
parent
13dcd35db0
commit
e1275594c5
3 changed files with 3 additions and 3 deletions
|
@ -237,7 +237,7 @@ s32 CalculateMoveDamageVars(struct DamageCalculationData *damageCalcData, u32 fi
|
|||
uq4_12_t CalcTypeEffectivenessMultiplier(u32 move, u32 moveType, u32 battlerAtk, u32 battlerDef, u32 defAbility, bool32 recordAbilities);
|
||||
uq4_12_t CalcPartyMonTypeEffectivenessMultiplier(u16 move, u16 speciesDef, u16 abilityDef);
|
||||
uq4_12_t GetTypeModifier(u32 atkType, u32 defType);
|
||||
uq4_12_t GetTypeEffectiveness(struct Pokemon *mon, u8 moveType);
|
||||
uq4_12_t GetOverworldTypeEffectiveness(struct Pokemon *mon, u8 moveType);
|
||||
s32 GetStealthHazardDamage(u8 hazardType, u32 battler);
|
||||
s32 GetStealthHazardDamageByTypesAndHP(u8 hazardType, u8 type1, u8 type2, u32 maxHp);
|
||||
bool32 CanMegaEvolve(u32 battler);
|
||||
|
|
|
@ -10670,7 +10670,7 @@ static uq4_12_t GetInverseTypeMultiplier(uq4_12_t multiplier)
|
|||
}
|
||||
}
|
||||
|
||||
uq4_12_t GetTypeEffectiveness(struct Pokemon *mon, u8 moveType)
|
||||
uq4_12_t GetOverworldTypeEffectiveness(struct Pokemon *mon, u8 moveType)
|
||||
{
|
||||
uq4_12_t modifier = UQ_4_12(1.0);
|
||||
u16 abilityDef = GetMonAbility(mon);
|
||||
|
|
|
@ -2520,7 +2520,7 @@ void GetFollowerAction(struct ScriptContext *ctx) // Essentially a big switch fo
|
|||
}
|
||||
if (multi < NUMBER_OF_MON_TYPES)
|
||||
{
|
||||
multi = GetTypeEffectiveness(mon, multi);
|
||||
multi = GetOverworldTypeEffectiveness(mon, multi);
|
||||
if (multi <= UQ_4_12(0.5))
|
||||
condEmotes[condCount++] = (struct SpecialEmote) {.emotion = FOLLOWER_EMOTION_HAPPY, .index = 32};
|
||||
else if (multi >= UQ_4_12(2.0))
|
||||
|
|
Loading…
Reference in a new issue