Skip to content

Instantly share code, notes, and snippets.

@Lusamine
Created December 6, 2025 03:04
Show Gist options
  • Select an option

  • Save Lusamine/370473e933eb79c2158ab33d83a22ec5 to your computer and use it in GitHub Desktop.

Select an option

Save Lusamine/370473e933eb79c2158ab33d83a22ec5 to your computer and use it in GitHub Desktop.

Here are the main files that are relevant to anyone who wants to make their own damage calculator for LZA.

pml_battle_logic_calc_DamageBase.c
pml_battle_logic_EventLauncher_Event_CalcDamage.c

Damage Tests showing exact values with gdb


Datamined Information is uploaded to za-textport.

personal_waza_param_array.json contains the real-time move data.
ExtentionType 0 is a regular move, 1 is Plus Move, and 2 is Rogue Mega Move.

battle_setting.json contains important values such as the global damage reduction, damage reduction vs Rogue Megas, Plus Move effectiveness multipliers, and Rocks/Spikes damage.

Comments are disabled for this gist.