Blade Grasp Usability

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
Blade Grasp Usability:
0018d050: 3c028019 lui r2,0x8019            |
0018d054: 904238f6 lbu r2,0x38f6(r2)        |r2 = Current ability flag 4
0018d058: 27bdffe8 addiu r29,r29,0xffe8     |
0018d05c: 30420010 andi r2,r2,0x0010        |r2 = 0x10 (blade grasp flag)
0018d060: 1040001d beq r2,r0,0x0018d0d8     #If Ability has countergrasp checked /Else branch to End
0018d064: afbf0010 sw r31,0x0010(r29)            | 
0018d068: 3c048019 lui r4,0x8019                 | 
0018d06c: 8c842d98 lw r4,0x2d98(r4)              |r4 = Target data pointer
0018d070: 34020064 ori r2,r0,0x0064              |r2 = 0x64 (100)
0018d074: 90830024 lbu r3,0x0024(r4)             |r3 = Target current brave
0018d078: 3c058019 lui r5,0x8019                 |
0018d07c: 8ca52d90 lw r5,0x2d90(r5)              |r5 = Target current action data pointer
0018d080: 00431023 subu r2,r2,r3                 |r2 = 100 - Target brave
0018d084: 0c0634e1 jal 0x0018d384                |-->Chance to React  0 to 100 Random number against Target brave - returns r2 = 0x00 if reaction occurs
0018d088: a4a2002a sh r2,0x002a(r5)              |Store 100 target current action hit% as 100 - Brave  (for displaying hit% ?)
0018d08c: 14400012 bne r2,r0,0x0018d0d8          #If target is reacting /Else branch to end
0018d090: 00000000 nop                               | 
0018d094: 3c028019 lui r2,0x8019                     | 
0018d098: 8c42f5fc lw r2,-0x0a04(r2)                 |r2 = Action state
0018d09c: 00000000 nop                               |
0018d0a0: 1440000d bne r2,r0,0x0018d0d8              #If action is being executed /Else branch to end
0018d0a4: 00000000 nop                                   |
0018d0a8: 3c028019 lui r2,0x8019                         |
0018d0ac: 8c422d90 lw r2,0x2d90(r2)                      |r2 = Target current action data pointer
0018d0b0: 00000000 nop                                   |
0018d0b4: a0400000 sb r0,0x0000(r2)                      |Store Target current action hit flag as miss
0018d0b8: 3c038019 lui r3,0x8019                         |
0018d0bc: 8c632d90 lw r3,0x2d90(r3)                      |r3 = Target current action data pointer
0018d0c0: 3402000b ori r2,r0,0x000b                      |r2 = 0x0b
0018d0c4: a0620002 sb r2,0x0002(r3)                      |Store Evade type as 0x0b (blade grasp)
0018d0c8: 3c038019 lui r3,0x8019                         |
0018d0cc: 8c632d90 lw r3,0x2d90(r3)                      |r3 = Target current action data pointer
0018d0d0: 340201c3 ori r2,r0,0x01c3                      |r2 = 0x1c3 (Blade grasp Ability ID)
0018d0d4: a462000e sh r2,0x000e(r3)                      |Store Target Reaction ID as blade grasp
0018d0d8: 8fbf0010 lw r31,0x0010(r29)            
0018d0dc: 27bd0018 addiu r29,r29,0x0018          
0018d0e0: 03e00008 jr r31                        
0018d0e4: 00000000 nop

Return locations

0018b940: Pre_Formula_Setup_(FDC)