Elemental Damage Modification (Prep)

From Final Fantasy Hacktics Wiki
Revision as of 19:19, 4 April 2022 by Orkney (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
No Parameters - Returns Nothing

Load Current Ability Weapon Element ( 0x80193904 ) and go to Elemental modification with it
-------------------------------------------------------------------------------------------------
00186fd0: 3c048019 lui r4,0x8019            
00186fd4: 90843904 lbu r4,0x3904(r4)        r4 = Current Ability Weapon Element      0x80193904 / 80193904
00186fd8: 27bdffe8 addiu r29,r29,-0x0018    
00186fdc: afbf0010 sw r31,0x0010(r29)       
00186fe0: 0c0613a6 jal 0x00184e98           -->Elemental_Damage_Modification Modify HP damage if Weakness/Halve - Enable absorption flags - Nullify Action if canceled
00186fe4: 00000000 nop                      
00186fe8: 8fbf0010 lw r31,0x0010(r29)       
00186fec: 27bd0018 addiu r29,r29,0x0018    
00186ff0: 03e00008 jr r31                   
00186ff4: 00000000 nop                 

Return Locations

Battle.bin
00188668: Weapon Damage Calculation
00189b58: 2D Dmg_(PA*(WP+Y)) 100% Status
00189c1c: 2E Equipped:Break Dmg_(PA*WP)
0018ac10: 63 Dmg_(SP*WP)