2A Hit (MA+X)% // AffectBraveOrFaith(Y)

From Final Fantasy Hacktics Wiki
(Redirected from 001899a4 - 00189a8c)
Jump to navigation Jump to search
[2a]
001899a4: 27bdffe8 addiu r29,r29,-0x0018    |
001899a8: afbf0010 sw r31,0x0010(r29)       |
001899ac: 0c061d7f jal 0x001875fc           |-->Sleep Check If Target is Sleeping, Forces the Attack to miss
001899b0: 00000000 nop                      |
001899b4: 3c028019 lui r2,0x8019            |
001899b8: 8c422d98 lw r2,0x2d98(r2)         |r2 = Target data pointer
001899bc: 00000000 nop                      |
001899c0: 90420006 lbu r2,0x0006(r2)        |r2 = Target's gender
001899c4: 00000000 nop                      |
001899c8: 30420020 andi r2,r2,0x0020        |r2 = 0x20 if Target is a monster
001899cc: 1040000b beq r2,r0,0x001899fc     #If Target is a monster
001899d0: 00000000 nop                          |
001899d4: 3c028019 lui r2,0x8019                |
001899d8: 8c422d94 lw r2,0x2d94(r2)             |r2 = Attacker data pointer
001899dc: 00000000 nop                          |
001899e0: 90420091 lbu r2,0x0091(r2)            |r2 = Attacker's support abilities (3rd set)
001899e4: 00000000 nop                          |
001899e8: 30420010 andi r2,r2,0x0010            |r2 = 0x10 if Attacker uses Monster Talk
001899ec: 14400003 bne r2,r0,0x001899fc         #If Attacker doesn't use Monster Talk
001899f0: 00000000 nop                              |
001899f4: 0c0610c3 jal 0x0018430c                   |-->Force Attack Miss Hit Flag = Miss Hit% = 0 - Evade type = 0x07
001899f8: 00000000 nop                              |
001899fc: 3c028019 lui r2,0x8019            |
00189a00: 8c422d90 lw r2,0x2d90(r2)         |r2 = Target Current Action (TCA) data pointer
00189a04: 00000000 nop                      |
00189a08: 90420000 lbu r2,0x0000(r2)        |r2 = TCA Hit flag
00189a0c: 00000000 nop                      |
00189a10: 1040001b beq r2,r0,0x00189a80     #If Attack Hits / Else (Target sleeping, or is a monster without Monster Talk) : branch to  END
00189a14: 00000000 nop                          |
00189a18: 0c0620be jal 0x001882f8               |-->Finger Guard  Check for Finger Guard and roll it (Brave%) - If it triggers : Abort Attack
00189a1c: 00000000 nop                          |
00189a20: 3c028019 lui r2,0x8019                |
00189a24: 8c422d90 lw r2,0x2d90(r2)             |r2 = TCA data pointer
00189a28: 00000000 nop                          |
00189a2c: 90420000 lbu r2,0x0000(r2)            |r2 = Hit Flag
00189a30: 00000000 nop                          |
00189a34: 10400012 beq r2,r0,0x00189a80         #If Attack hits (finger guard not used or failed) /Else branch to  END
00189a38: 00000000 nop                              |
00189a3c: 0c061760 jal 0x00185d80                   |-->Store MA and X Set Ability XA = Attacker's MA and YA = used Ability X
00189a40: 00000000 nop                              |
00189a44: 0c061259 jal 0x00184964                   |-->Compatibility Alters XA (-50% to +50%) based on compatibility
00189a48: 00000000 nop                              |
00189a4c: 0c061967 jal 0x0018659c                   |-->XA + YA for Accuracy XA+YA becomes TCA HP damage (YA is processed via compatibility)
00189a50: 00000000 nop                              |
00189a54: 0c061d44 jal 0x00187510                   |-->Uses_HP_damage_as_Action_hit% HP damage becomes Hit% - Roll Hit% vs random (0 to 100), Set Action hit flag to miss if it fails
00189a58: 00000000 nop                              |
00189a5c: 3c028019 lui r2,0x8019                    |
00189a60: 8c422d90 lw r2,0x2d90(r2)                 |r2 = TCA data pointer
00189a64: 00000000 nop                              |
00189a68: 90420000 lbu r2,0x0000(r2)                |r2 = Hit Flag
00189a6c: 00000000 nop                              |
00189a70: 10400003 beq r2,r0,0x00189a80             #If Attack hits
00189a74: 00000000 nop                                  |
00189a78: 0c061b01 jal 0x00186c04                       |-->Talk Skill Hard coded routine : uses Ability do set Action effects
00189a7c: 00000000 nop                                  |
00189a80: 8fbf0010 lw r31,0x0010(r29)       END
00189a84: 27bd0018 addiu r29,r29,0x0018
00189a88: 03e00008 jr r31
00189a8c: 00000000 nop

Return location

Battle.bin
0018b97c - Pre Formula Setup