Difference between revisions of "Weapon Damage Calculation"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m
m (return link)
Line 29: Line 29:
 
  001886a0: 00000000 nop
 
  001886a0: 00000000 nop
 
'''Return Locations'''
 
'''Return Locations'''
  00188b64: Formula [[01 Dmg (Weapon)]]
+
  00188b84: [[01 Dmg (Weapon)|Formula 01 - Dmg (Weapon)]]
 +
00188bc4: [[02_Dmg_(Weapon)|Formula 02 - Dmg (Weapon)]]

Revision as of 19:24, 25 August 2021

Returns true 19% of the time. (Interpreted as proc success.)

00188638: 27bdffe8 addiu r29,r29,0xffe8		
0018863c: afbf0010 sw r31,0x0010(r29)		
00188640: 0c0616a7 jal 0x00185a9c		Base XA Calculation for each Weapon
00188644: 00000000 nop
00188648: 0c0617e0 jal 0x00185f80		Charge Calculation
0018864c: 00000000 nop
00188650: 0c0617e9 jal 0x00185fa4		Weapon Element Strengthen Calculation
00188654: 00000000 nop
00188658: 0c0621a9 jal 0x001886a4		Damage Calculation
0018865c: 00000000 nop
00188660: 0c061bf4 jal 0x00186fd0		Elemental Damage Modification (Prep)
00188664: 00000000 nop
00188668: 3c028019 lui r2,0x8019
0018866c: 8c422d90 lw r2,0x2d90(r2)		Load Target Current Action Data Pointer
00188670: 00000000 nop
00188674: 90420000 lbu r2,0x0000(r2)		Load Able to hit Flag
00188678: 00000000 nop
0018867c: 10400005 beq r2,r0,0x00188694		Branch if Attack was Evaded/Nulled
00188680: 34020001 ori r2,r0,0x0001		r2 = 1
00188684: 0c061c3f jal 0x001870fc		Elemental Absorption
00188688: 00000000 nop
0018868c: 0c062130 jal 0x001884c0		Conditional Status Proc Roll (19%)
00188690: 00000000 nop
00188694: 8fbf0010 lw r31,0x0010(r29)
00188698: 27bd0018 addiu r29,r29,0x0018
0018869c: 03e00008 jr r31
001886a0: 00000000 nop

Return Locations

00188b84: Formula 01 - Dmg (Weapon)
00188bc4: Formula 02 - Dmg (Weapon)