03 Dmg (WP^2)

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
[03] Guns

No Parameters - Returns Nothing

No elemental mechanics.
Hard coded Proc mechanics (see notes)
----------------------------------------------------------------------------------------
00188be4: 3c028019 lui r2,0x8019            
00188be8: 90423902 lbu r2,0x3902(r2)        |r2 = Current Ability Weapon Power (WP)  0x80193902 / 80193902
00188bec: 27bdffe8 addiu r29,r29,-0x0018    |
00188bf0: afbf0010 sw r31,0x0010(r29)       |
00188bf4: 3c018019 lui r1,0x8019            |
00188bf8: a42238ce sh r2,0x38ce(r1)         |Store WP in Current Ability XA  0x801938ce / 801938ce
00188bfc: 3c018019 lui r1,0x8019            |
00188c00: a42238d0 sh r2,0x38d0(r1)         |Store WP in Current Ability YA  0x801938d0 / 801938d0
00188c04: 0c0617e0 jal 0x00185f80           |-->Charge Calculation  Add charge power to XA
00188c08: 00000000 nop                      |
00188c0c: 0c0621a9 jal 0x001886a4           |-->Damage Calculation  Alters XA (Status, Support, Compatibility, Crit.) - Store XA*YA as Target current action HP damage 
00188c10: 00000000 nop                      |
00188c14: 8fbf0010 lw r31,0x0010(r29)       
00188c18: 27bd0018 addiu r29,r29,0x0018     
00188c1c: 03e00008 jr r31                   
00188c20: 00000000 nop

Hard coded mechanics

In Pre Formula Setup Current Ability Proc ID (0x801938da) is forced to 0x00 when loading data from Status table. (See line 0018b900 )
- The value at 0x801938da is preserved
- The data stored in Current Ability 0x80193906 to 0x8019390b are the data from the Inflict Status 0x00 (nothing enabled in patcher)

Return location

0018b97c: Pre Formula Setup