01 Dmg (Weapon)

From Final Fantasy Hacktics Wiki
(Redirected from 00188b64 - 00188ba0)
Jump to navigation Jump to search

Note: Formula 00 is treated as 01. 00 is changed to 01 by 0018b8d0-0018b8e0 in Pre Formula Setup (FDC).

[01] Weapon
00188b64: 27bdffe8 addiu r29,r29,-0x0018    |
00188b68: afbf0010 sw r31,0x0010(r29)       |
00188b6c: 0c062144 jal 0x00188510           |-->Physical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit
00188b70: 00000000 nop                      |
00188b74: 14400007 bne r2,r0,0x00188b94     #If Attack Hits /Else branch to END
00188b78: 00000000 nop                          |
00188b7c: 0c06218e jal 0x00188638               |-->Weapon Damage Calculation Set XA and YA - Alters XA (Status/Elements/Compat/Support/Crit.) - Store XA*YA as HP dmg (Deals with absorption too) - Roll Proc
00188b80: 00000000 nop                          |
00188b84: 14400003 bne r2,r0,0x00188b94         #If Proc is Triggered  (r2 is returned by the routine above)
00188b88: 00000000 nop                              |
00188b8c: 0c061fad jal 0x00187eb4                   |--> Apply status (to action) - (Preserve hit status, evade type, hit %) Update Target Current Action status infliction/Removal
00188b90: 00000000 nop                              |
00188b94: 8fbf0010 lw r31,0x0010(r29)       END
00188b98: 27bd0018 addiu r29,r29,0x0018      
00188b9c: 03e00008 jr r31                   
00188ba0: 00000000 nop                      


Return Locations

8018b97c - Pre Formula Setup (link)