Difference between revisions of "06 AbsHP (Weapon)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
  [06] Weapon (Absorb HP)
+
  No Elemental mechanics
  00188cf4: 27bdffe8 addiu r29,r29,0xffe8
+
No Proc
  00188cf8: afbf0010 sw r31,0x0010(r29)
+
Undead reverse
  00188cfc: 0c062144 jal 0x 00188510      [[Physical Evade Calculation]]
+
------------------------------------------------------------------------------------------------------------------------------
  00188d00: 00000000 nop
+
  00188cf4: 27bdffe8 addiu r29,r29,-0x0018   
  00188d04: 14400009 bne r2,r0,0x 00188d2c      Branch if attack was evaded
+
  00188cf8: afbf0010 sw r31,0x0010(r29)      
  00188d08: 00000000 nop
+
  00188cfc: 0c062144 jal 0x00188510          |{{f/jal|Physical Evade Calculation|Physical Evade Calculation}} If Abillity is evadeable roll Ability Evade bytes against Ability base Hit
  00188d0c: 0c0616a7 jal 0x 00185a9c      Weapon XA Calculation
+
  00188d00: 00000000 nop                     |
  00188d10: 00000000 nop
+
  00188d04: 14400009 bne r2,r0,0x00188d2c    {{f/Cond|If Attack hits}}
  00188d14: 0c0617e0 jal 0x 00185f80      Charge Calculation
+
  00188d08: 00000000 nop                         |
  00188d18: 00000000 nop
+
  00188d0c: 0c0616a7 jal 0x00185a9c              |{{f/jal|Base_XA_Calculation|Base_XA_Calculation}} Set XA and YA (Based on Weapon Type)
  00188d1c: 0c0621a9 jal 0x 001886a4      Physical [[Damage Calculation]] - essentially, this is the same coding as the subroutine in 0x188638 but missing the weapon elemental routine.
+
  00188d10: 00000000 nop                         |
  00188d20: 00000000 nop
+
  00188d14: 0c0617e0 jal 0x00185f80              |{{f/jal|Charge Calculation|Charge Calculation}} Add Power Charge to XA
  00188d24: 0c061c92 jal 0x 00187248      HP Absorb Calculation
+
  00188d18: 00000000 nop                         |
  00188d28: 00000000 nop
+
  00188d1c: 0c0621a9 jal 0x001886a4              |{{f/jal|Damage Calculation|Damage Calculation}} Modify XA (Support-Statuses-Compat-Critical Hit), Might add Knockback, Set TCA HP damage to XA*YA
  00188d2c: 8fbf0010 lw r31,0x0010(r29)
+
  00188d20: 00000000 nop                         |
  00188d30: 27bd 0018 addiu r29,r29,0x 0018
+
  00188d24: 0c061c92 jal 0x00187248              |{{f/jal|HP Absorption |HP Absorption }} Add HP recovery to Attacker action / Manages undead reversal mechanics
  00188d34: 03e00008 jr r31
+
  00188d28: 00000000 nop                         |
 +
  00188d2c: 8fbf0010 lw r31,0x0010(r29)       END
 +
  00188d30: 27bd0018 addiu r29,r29,0x0018   
 +
  00188d34: 03e00008 jr r31                  
 
  00188d38: 00000000 nop
 
  00188d38: 00000000 nop
 +
=== Return location ===
 +
8018b97c - Pre Formula Setup ([[Pre Formula Setup (FDC)|link]])

Latest revision as of 19:52, 16 April 2022

No Elemental mechanics
No Proc
Undead reverse
------------------------------------------------------------------------------------------------------------------------------
00188cf4: 27bdffe8 addiu r29,r29,-0x0018    
00188cf8: afbf0010 sw r31,0x0010(r29)       
00188cfc: 0c062144 jal 0x00188510           |-->Physical Evade Calculation If Abillity is evadeable roll Ability Evade bytes against Ability base Hit
00188d00: 00000000 nop                      |
00188d04: 14400009 bne r2,r0,0x00188d2c     #If Attack hits
00188d08: 00000000 nop                          |
00188d0c: 0c0616a7 jal 0x00185a9c               |-->Base_XA_Calculation Set XA and YA (Based on Weapon Type)
00188d10: 00000000 nop                          |
00188d14: 0c0617e0 jal 0x00185f80               |-->Charge Calculation Add Power Charge to XA
00188d18: 00000000 nop                          |
00188d1c: 0c0621a9 jal 0x001886a4               |-->Damage Calculation Modify XA (Support-Statuses-Compat-Critical Hit), Might add Knockback, Set TCA HP damage to XA*YA
00188d20: 00000000 nop                          |
00188d24: 0c061c92 jal 0x00187248               |-->HP Absorption  Add HP recovery to Attacker action / Manages undead reversal mechanics
00188d28: 00000000 nop                          |
00188d2c: 8fbf0010 lw r31,0x0010(r29)       END
00188d30: 27bd0018 addiu r29,r29,0x0018     
00188d34: 03e00008 jr r31                   
00188d38: 00000000 nop

Return location

8018b97c - Pre Formula Setup (link)