Difference between revisions of "05 Dmg (Weapon)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  [05] Redundant? - Appears to be formula 0x01 (dmg_(Weapon)) but without the elemental proc. isn't used, obviously, because any weapon can just not have an element and go through 0x01 just fine. - Talcall
+
  [05] yeah no this doesn't seem to be used; not even by charge. it's just Dmg_(weapon) but it doesn't have accept elements. - Talcall, for a third time
  00188c9c: 27bdffe8 addiu r29,r29,0xffe8
+
  00188ca0: afbf0010 sw r31,0x0010(r29)
+
  00188c9c: 27bdffe8 addiu r29,r29,-0x0018    |
  00188ca4: 0c06215a jal 0x00188568          [[Physical Evade Calculation]]
+
  00188ca0: afbf0010 sw r31,0x0010(r29)       |
  00188ca8: 00000000 nop
+
  00188ca4: 0c06215a jal 0x00188568          |{{f/jal|Physical_Evade_Calculation(Charge)|Physical_Evade_Calculation(Charge)}} If Abillity is evadeable roll Ability Evade byte against Ability base Hit
  00188cac: 1440000d bne r2,r0,0x00188ce4    Branch if attack was evaded
+
  00188ca8: 00000000 nop                     |
  00188cb0: 00000000 nop
+
  00188cac: 1440000d bne r2,r0,0x00188ce4    {{f/Cond|If Attack Hits}}
  00188cb4: 0c0616a7 jal 0x00185a9c           [[Base XA Calculation]]
+
  00188cb0: 00000000 nop                         |
  00188cb8: 00000000 nop
+
  00188cb4: 0c0616a7 jal 0x00185a9c               |{{f/jal|Base XA Calculation|Base XA Calculation}} Set XA and YA (Based on Weapon Type)
  00188cbc: 0c0617e0 jal 0x00185f80           [[Charge Calculation]]
+
  00188cb8: 00000000 nop                         |
  00188cc0: 00000000 nop
+
  00188cbc: 0c0617e0 jal 0x00185f80               |{{f/jal|Charge Calculation|Charge Calculation}} Add Power Charge to XA
  00188cc4: 0c0621a9 jal 0x001886a4           Physical [[Damage Calculation]]
+
  00188cc0: 00000000 nop                         |
  00188cc8: 00000000 nop
+
  00188cc4: 0c0621a9 jal 0x001886a4               |{{f/jal|Damage Calculation|Physical Damage Calculation}} Modify XA (Support-Statuses-Compat-Critical Hit), Might add Knockback, Set TCA HP damage
  00188ccc: 0c062130 jal 0x001884c0           [[Conditional Status Proc Roll (19%)]]
+
  00188cc8: 00000000 nop                         |
  00188cd0: 00000000 nop
+
  00188ccc: 0c062130 jal 0x001884c0               |{{f/jal|Conditional Status Proc Roll (19%)|Conditional Status Proc Roll (19%)}} Returns r2 = 0x00 if Proc is triggered (and enables TCA special flag 2 0x02)
  00188cd4: 14400003 bne r2,r0,0x00188ce4     If proc roll:
+
  00188cd0: 00000000 nop                         |
  00188cd8: 00000000 nop
+
  00188cd4: 14400003 bne r2,r0,0x00188ce4         {{f/Cond|If Proc is triggered}}
  00188cdc: 0c061fad jal 0x00187eb4           [[Apply status (to action) - (Preserve hit status, evade type, hit %)]]
+
  00188cd8: 00000000 nop                             |
  00188ce0: 00000000 nop
+
  00188cdc: 0c061fad jal 0x00187eb4                   |{{f/jal|Apply status (to action) - (Preserve hit status, evade type, hit %)|Apply status (to action) - (Preserve hit status, evade type, hit %)}} Update Target Current Action status infliction/Removal
  00188ce4: 8fbf0010 lw r31,0x0010(r29)
+
  00188ce0: 00000000 nop                             |
  00188ce8: 27bd 0018 addiu r29,r29,0x0018
+
  00188ce4: 8fbf0010 lw r31,0x0010(r29)  
  00188cec: 03e00008 jr r31
+
  00188ce8: 27bd0018 addiu r29,r29,0x0018
  00188cf0: 00000000 nop
+
  00188cec: 03e00008 jr r31
 +
  00188cf0: 00000000 nop  
 +
 
 +
=== Notes ===
 +
This routine jump to a dedicated Physical evasion routine without "the weather effects on bows part". Which seems to be dedicated too(only linked to this one).
 +
=== Return Locations ===
 +
8018b97c - Pre Formula Setup ([[Pre Formula Setup (FDC)|link]])

Latest revision as of 19:12, 11 April 2022

[05] yeah no this doesn't seem to be used; not even by charge. it's just Dmg_(weapon) but it doesn't have accept elements. - Talcall, for a third time

00188c9c: 27bdffe8 addiu r29,r29,-0x0018    |
00188ca0: afbf0010 sw r31,0x0010(r29)       |
00188ca4: 0c06215a jal 0x00188568           |-->Physical_Evade_Calculation(Charge) If Abillity is evadeable roll Ability Evade byte against Ability base Hit
00188ca8: 00000000 nop                      |
00188cac: 1440000d bne r2,r0,0x00188ce4     #If Attack Hits
00188cb0: 00000000 nop                          |
00188cb4: 0c0616a7 jal 0x00185a9c               |-->Base XA Calculation Set XA and YA (Based on Weapon Type)
00188cb8: 00000000 nop                          |
00188cbc: 0c0617e0 jal 0x00185f80               |-->Charge Calculation Add Power Charge to XA
00188cc0: 00000000 nop                          |
00188cc4: 0c0621a9 jal 0x001886a4               |-->Physical Damage Calculation Modify XA (Support-Statuses-Compat-Critical Hit), Might add Knockback, Set TCA HP damage
00188cc8: 00000000 nop                          |
00188ccc: 0c062130 jal 0x001884c0               |-->Conditional Status Proc Roll (19%) Returns r2 = 0x00 if Proc is triggered (and enables TCA special flag 2 0x02)
00188cd0: 00000000 nop                          |
00188cd4: 14400003 bne r2,r0,0x00188ce4         #If Proc is triggered
00188cd8: 00000000 nop                              |
00188cdc: 0c061fad jal 0x00187eb4                   |-->Apply status (to action) - (Preserve hit status, evade type, hit %) Update Target Current Action status infliction/Removal
00188ce0: 00000000 nop                              |
00188ce4: 8fbf0010 lw r31,0x0010(r29) 
00188ce8: 27bd0018 addiu r29,r29,0x0018
00188cec: 03e00008 jr r31  
00188cf0: 00000000 nop 

Notes

This routine jump to a dedicated Physical evasion routine without "the weather effects on bows part". Which seems to be dedicated too(only linked to this one).

Return Locations

8018b97c - Pre Formula Setup (link)