Difference between revisions of "Damage Calculation"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  001886a4: 27bdffe8 addiu r29,r29,0xffe8
+
No Parameters - Returns Nothing
 +
 +
Modify Ability XA (Support abilities, Statuses, Compatibility, Critical Hit)
 +
Add Knockback flags if critical hit (and it's possible)
 +
Set Target Current Action 0x04 (HP damage) to XA * YA
 +
Set Target Current Action 0x25 (Attack Type) to 0x80 (HP damage)
 +
------------------------------------------------------------------------------------------------------
 +
  001886a4: 27bdffe8 addiu r29,r29,-0x0018
 
  001886a8: afbf0010 sw r31,0x0010(r29)
 
  001886a8: afbf0010 sw r31,0x0010(r29)
  001886ac: 0c06217e jal 0x001885f8 XA Modifying Statuses/Support (Plus Compat)
+
  001886ac: 0c06217e jal 0x001885f8 {{f/jal|Physical XA Modifying Statuses/Support|Physical XA Modifying Statuses/Support}} Modify Ability XA (Support Abilities, Status, Compatibility)
 
  001886b0: 00000000 nop
 
  001886b0: 00000000 nop
  001886b4: 0c06193e jal 0x001864f8 Critical Hit Calculation (Includes Knockback)
+
  001886b4: 0c06193e jal 0x001864f8 {{f/jal|Critical Hit Calculation|Critical Hit Calculation}} If Critical Hit : Increase XA (+0% to +100%) Add Knockback (if possible)
 
  001886b8: 00000000 nop
 
  001886b8: 00000000 nop
  001886bc: 0c06195a jal 0x00186568 [[XA * YA Calculation]]
+
  001886bc: 0c06195a jal 0x00186568 {{f/jal|XA * YA Calculation|XA * YA Calculation}} Store XA*YA as Target Current Action HP damage (TCA 0x04) and Set TCA Attack type to 0x80 (HP damage)
 
  001886c0: 00000000 nop
 
  001886c0: 00000000 nop
 
  001886c4: 8fbf0010 lw r31,0x0010(r29)
 
  001886c4: 8fbf0010 lw r31,0x0010(r29)
Line 11: Line 18:
 
  001886cc: 03e00008 jr r31
 
  001886cc: 03e00008 jr r31
 
  001886d0: 00000000 nop
 
  001886d0: 00000000 nop
'''Return Locations'''
+
=== Return Locations ===
  00188638 - [[Weapon Damage Calculation]]
+
'''Battle.bin'''
 +
  00188660: [[Weapon_Damage_Calculation]]
 +
00188c14: [[03_Dmg_(WP%5E2)]]
 +
00188ccc: [[05_Dmg_(Weapon)]]
 +
00188d24: [[06_AbsHP_(Weapon)]]
 +
00189b50: [[2D_Dmg_(PA*(WP%2BY))_100%25_Status]]
 +
00189c14: [[2E_Equipped:Break_Dmg_(PA*WP)]]
 +
00189c78: [[2F_AbsMP_(PA*WP)]]
 +
00189cb8: [[30_AbsHP_(PA*WP)]]

Latest revision as of 20:01, 5 April 2022

No Parameters - Returns Nothing

Modify Ability XA (Support abilities, Statuses, Compatibility, Critical Hit)
Add Knockback flags if critical hit (and it's possible)
Set Target Current Action 0x04 (HP damage) to XA * YA
Set Target Current Action 0x25 (Attack Type) to 0x80 (HP damage)
------------------------------------------------------------------------------------------------------
001886a4: 27bdffe8 addiu r29,r29,-0x0018
001886a8: afbf0010 sw r31,0x0010(r29)
001886ac: 0c06217e jal 0x001885f8		-->Physical XA Modifying Statuses/Support Modify Ability XA (Support Abilities, Status, Compatibility)
001886b0: 00000000 nop
001886b4: 0c06193e jal 0x001864f8		-->Critical Hit Calculation If Critical Hit : Increase XA (+0% to +100%) Add Knockback (if possible)
001886b8: 00000000 nop
001886bc: 0c06195a jal 0x00186568		-->XA * YA Calculation Store XA*YA as Target Current Action HP damage (TCA 0x04) and Set TCA Attack type to 0x80 (HP damage)
001886c0: 00000000 nop
001886c4: 8fbf0010 lw r31,0x0010(r29)
001886c8: 27bd0018 addiu r29,r29,0x0018
001886cc: 03e00008 jr r31
001886d0: 00000000 nop

Return Locations

Battle.bin
00188660: Weapon_Damage_Calculation
00188c14: 03_Dmg_(WP^2)
00188ccc: 05_Dmg_(Weapon)
00188d24: 06_AbsHP_(Weapon)
00189b50: 2D_Dmg_(PA*(WP+Y))_100%_Status
00189c14: 2E_Equipped:Break_Dmg_(PA*WP)
00189c78: 2F_AbsMP_(PA*WP)
00189cb8: 30_AbsHP_(PA*WP)