various calculations used in Battle
static ae::q20_12_t getLevelDifference(u32 attackerLevel, u32 defenderLevel)
Gets a multiplier used for damage calcs based on an arbitrary hardcoded table.
static uint8_t getMagicBoostHeal(uint8_t &magic)
Calculate healing bonus based on an arbitrary hardcoded table.
static u32 healing(BattleParticipant &user, Skill &skill)
Calculates heal of a skill.
static u32 allOutAttack(Player &attacker, BattleParticipant &defender, u32 participantCount)
Calculates damage of an All out attack.
static const ae::q20_12_t levelMultipliers[24]
static ae::q20_12_t getAffinityMtp(BattleStats &battleStats, Skill &skill)
Calculate damage multiplier based on resistance & skill affinity.
static bool hit(BattleParticipant &attacker, BattleParticipant &defender, Skill &skill)
Calculates if a skill hit the target.
static const uint8_t magicBoostTableHeal[20]
static u32 attack(BattleParticipant &attacker, BattleParticipant &defender, Skill &skill)
Calculates damage of an attack.
static u32 getAtk(BattleStats &attackerStats, Skill &skill)
Gets correct stat for damage calculations based on skill type.
Basic stats / affinities. Used by Personas or directly by Enemies.