53 Dmg (Y)% Hit (MA+X)%

From Final Fantasy Hacktics Wiki
Revision as of 12:49, 16 June 2022 by Orkney (talk | contribs) (Orkney moved page 53 Dmg (X)% Hit (MA+X)% to 53 Dmg (Y)% Hit (MA+X)%)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
0018a5e4: 27bdffe8 addiu r29,r29,-0x0018    |
0018a5e8: afbf0010 sw r31,0x0010(r29)       |
0018a5ec: 0c06216e jal 0x001885b8           |-->Magical_Evade_Calculation If Abillity is evadeable roll Ability Evade byte against Ability base Hit / Returns r2
0018a5f0: 00000000 nop                      |
0018a5f4: 14400018 bne r2,r0,0x0018a658     #If Attack is not evaded
0018a5f8: 00000000 nop                          |
0018a5fc: 0c0622a1 jal 0x00188a84               |-->MA_%2B_X_without_faith Set XA ans YA, applies magical modifier (no faith) and compat, uses XA+YA as Hit% - returns r2
0018a600: 00000000 nop                          |
0018a604: 14400014 bne r2,r0,0x0018a658         #If Attack hits
0018a608: 00000000 nop                              |
0018a60c: 0c061989 jal 0x00186624                   |-->Calculate_HP%_damage Set Target Current Action HP damage to [Used Ability Y]% of Target max HP
0018a610: 00000000 nop                              |
0018a614: 0c061bb4 jal 0x00186ed0                   |-->Weather_Elemental_effects +25% HP damage For Thunder and Ice or -25% damage For Fire according to the weather
0018a618: 00000000 nop                              |
0018a61c: 0c061bfe jal 0x00186ff8                   |-->Ability_Elemental Checks For Target Elemental resistance/Weakness - Deals with [Oil + Fire]  and [Float + Earth]
0018a620: 00000000 nop                              |
0018a624: 3c028019 lui r2,0x8019                    |
0018a628: 8c422d90 lw r2,0x2d90(r2)                 |r2 = Target Current Action (TCA) data pointer
0018a62c: 00000000 nop                              |
0018a630: 90420000 lbu r2,0x0000(r2)                |r2 = TCA Hit flag
0018a634: 00000000 nop                              |
0018a638: 10400007 beq r2,r0,0x0018a658             #If Attack hits (not canceled by elements)
0018a63c: 00000000 nop                                  |
0018a640: 0c0621c7 jal 0x0018871c                       |-->Elemental_Absorb_and_status_roll Turns HP damage into recovery (if element is absorbed) / returns r2 = 0x00 if proc is triggered
0018a644: 00000000 nop                                  |
0018a648: 14400003 bne r2,r0,0x0018a658                 #If Proc is trigered
0018a64c: 00000000 nop                                      |
0018a650: 0c061fad jal 0x00187eb4                           |-->Apply_status_(to_action)_-_(Preserve_hit_status,_evade_type,_hit_%25)  Update Target Current Action status infliction/Removal
0018a654: 00000000 nop                                      |
0018a658: 8fbf0010 lw r31,0x0010(r29)       END
0018a65c: 27bd0018 addiu r29,r29,0x0018
0018a660: 03e00008 jr r31
0018a664: 00000000 nop

Return location

Battle.bin
0018b97c : Pre Formula Setup