All the disassembly for the damage formula in Legends: Arceus version 1.1.1.
Labels are mine; hopefully they are correct/understandable.
- calc_attack_damage - main function applying the modifiers. Calls
calc_initial_damage
. - calc_initial_damage - has the original damage formula here, unused. Calls
calc_initial_damage_LA
. - calc_initial_damage_LA - calculates initial damage and applies attack/defense modifiers.
- apply_damage_effectiveness_modifier - contains the float values for effectiveness modifiers.