Truth/Formula 5E-5F Magical damage

From Final Fantasy Hacktics Wiki
Revision as of 19:08, 18 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Truth/Formula 5E-5F Magical damage:

No Parameters 

Returns r2 = 0x00 if Proc is triggered (not used)

Modify XA (Element/Support/Status/Compatibility)
Set HP damage = XA*YA and process it through elemental resistances
Roll Status Proc (19% chances) and Add status is successful
-------------------------------------------------------------------------------------------- 
00188964: 27bdffe8 addiu r29,r29,-0x0018    |
00188968: afbf0010 sw r31,0x0010(r29)       |
0018896c: 0c0617ff jal 0x00185ffc           |-->Elemental Strengthen  XA + 25% if used Ability Element is strengthened
00188970: 00000000 nop                      |
00188974: 0c0621d1 jal 0x00188744           |-->Magical Support/Status/Compat Modify Ability XA (Support Abilities, Status, Compatibility)
00188978: 00000000 nop                      |
0018897c: 0c0621df jal 0x0018877c           |-->Elemental XA * YA  Turns XA * YA in HP damage / Modify Damage based on Elements / Returns r2 = 0x00 if Attack hits
00188980: 00000000 nop                      |
00188984: 14400003 bne r2,r0,0x00188994     #If Attack Hits  /Else Attack is canceled by elements 
00188988: 00000000 nop                          |
0018898c: 0c0621f1 jal 0x001887c4               |-->Elemental Absorb/Status  Deals with Absorption / Roll Proc (19% of chances) and Add Status if successful
00188990: 00000000 nop                          |
00188994: 8fbf0010 lw r31,0x0010(r29)       |END
00188998: 27bd0018 addiu r29,r29,0x0018     |
0018899c: 03e00008 jr r31                   |
001889a0: 00000000 nop    

Return location

Battle.bin
001889bc: 2Truth/Formula_5E-5F_Calculate_damage
001895e4: Formula 20 - Dmg (MA*Y)
001896dc: Formula 24 - Dmg ((PA+Y)/2*MA)
0018a448: Formula 4E - Dmg (MA*Y)