Difference between revisions of "Conditional Status Proc Roll (19%)"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
m (return link)
m (return link)
Line 22: Line 22:
 
==Return location==
 
==Return location==
 
  00188734: [[Elemental_Absorb_and_status_roll]]
 
  00188734: [[Elemental_Absorb_and_status_roll]]
 +
001887dc: [[Elemental_Absorb/Status]]
 +
00188cd4: [[05_Dmg_(Weapon)|Formula 05 - Dmg (Weapon)]]
 +
00189d54: [[31_Dmg_((PA%2BY)/2*PA)|Formula 31 - Dmg ((PA+Y)/2*PA)]]
 +
00188694: [[Weapon_Damage_Calculation]] (return to formula 01 and 02)

Revision as of 19:22, 25 August 2021

001884c0: 27bdffe8 addiu r29,r29,0xffe8
001884c4: afbf0010 sw r31,0x0010(r29)
001884c8: 0c061da4 jal 0x00187690		#	Conditional Status Proc Roll (19%) Inner Routine
001884cc: 00000000 nop
001884d0: 3c038019 lui r3,0x8019
001884d4: 8c63f5fc lw r3,-0x0a04(r3)
001884d8: 34020002 ori r2,r0,0x0002
001884dc: 10620008 beq r3,r2,0x00188500		#	if (mem_word[0x8018f5fc] == 2)
001884e0: 00001021 addu r2,r0,r0		#		return 0;
001884e4: 3c028019 lui r2,0x8019
001884e8: 8c422d90 lw r2,0x2d90(r2)
001884ec: 00000000 nop
001884f0: 94420010 lhu r2,0x0010(r2)
001884f4: 00000000 nop
001884f8: 30420200 andi r2,r2,0x0200
001884fc: 2c420001 sltiu r2,r2,0x0001		#	Return 0 if status proc succeeds, 1 otherwise
00188500: 8fbf0010 lw r31,0x0010(r29)
00188504: 27bd0018 addiu r29,r29,0x0018
00188508: 03e00008 jr r31
0018850c: 00000000 nop

Return location

00188734: Elemental_Absorb_and_status_roll
001887dc: Elemental_Absorb/Status
00188cd4: Formula 05 - Dmg (Weapon)
00189d54: Formula 31 - Dmg ((PA+Y)/2*PA)
00188694: Weapon_Damage_Calculation (return to formula 01 and 02)