02 Dmg (Weapon)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
[02] Weapon with 19% cast spell

No Parameters - Returns Nothing

Proc ID is used for triggering a second ability instead of inflicting a status
Set Some Current Ability flags if Proc is triggered :
- 0x801938c8 : set to 0x01 (Post action event?)
- 0x801938c6 : Set to Proc ID (from curent ability 0x801938da )
- 0x801938ef : Set to Target ID (post action Target ?) from curent ability 0x801938c1
-------------------------------------------------------------------------------------------------
00188ba4: 27bdffe8 addiu r29,r29,-0x0018    |
00188ba8: afbf0010 sw r31,0x0010(r29)       |
00188bac: 0c062144 jal 0x00188510           |-->Physical Evade Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit
00188bb0: 00000000 nop                      |
00188bb4: 14400007 bne r2,r0,0x00188bd4     #If Attack Hits /Else branch to END
00188bb8: 00000000 nop                          |
00188bbc: 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 (19%)
00188bc0: 00000000 nop                          |
00188bc4: 14400003 bne r2,r0,0x00188bd4         #If Proc is triggered
00188bc8: 00000000 nop                              |
00188bcc: 0c061db9 jal 0x001876e4                   |-->Store Reaction/Proc ID and Target Set some flags for post action Proc
00188bd0: 00000000 nop                              |
00188bd4: 8fbf0010 lw r31,0x0010(r29)       END        
00188bd8: 27bd0018 addiu r29,r29,0x0018             
00188bdc: 03e00008 jr r31                           
00188be0: 00000000 nop

Return location

Battle.bin
 8018b97c - Pre Formula Setup