Difference between revisions of "Minimum SP Capping/War Trophy Nulling/Status Initialization"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Created page with " Minimum SP Capping/War Trophy Nulling/Status Initialization 0005dfd4: 27bdffe8 addiu r29,r29,0xffe8 0005dfd8: afbf0010 sw r31,0x0010(r29) 0005dfdc: 90820038 lbu r2,0x0038(...")
 
 
(One intermediate revision by one other user not shown)
Line 11: Line 11:
 
  0005dff8: a0800163 sb r0,0x0163(r4) Store War Trophy = 0
 
  0005dff8: a0800163 sb r0,0x0163(r4) Store War Trophy = 0
 
  0005dffc: a0800164 sb r0,0x0164(r4) Store Bonus Money Mod = 0
 
  0005dffc: a0800164 sb r0,0x0164(r4) Store Bonus Money Mod = 0
  0005e000: 0c017505 jal 0x0005d414 Status Initialization
+
  0005e000: 0c017505 jal 0x0005d414 [[Status Initialization]]
 
  0005e004: 00000000 nop
 
  0005e004: 00000000 nop
 
  0005e008: 8fbf0010 lw r31,0x0010(r29)
 
  0005e008: 8fbf0010 lw r31,0x0010(r29)
Line 17: Line 17:
 
  0005e010: 03e00008 jr r31
 
  0005e010: 03e00008 jr r31
 
  0005e014: 00000000 nop
 
  0005e014: 00000000 nop
 +
 +
== Return Locations ==
 +
BATTLE.BIN
 +
0017f368
 +
0017f55c
 +
0017f9cc

Latest revision as of 04:47, 25 September 2021

Minimum SP Capping/War Trophy Nulling/Status Initialization
0005dfd4: 27bdffe8 addiu r29,r29,0xffe8
0005dfd8: afbf0010 sw r31,0x0010(r29)
0005dfdc: 90820038 lbu r2,0x0038(r4)		Load Unit's SP
0005dfe0: 00000000 nop
0005dfe4: 14400002 bne r2,r0,0x0005dff0		Branch if SP != 0
0005dfe8: 34020001 ori r2,r0,0x0001		r2 = 1
0005dfec: a0820038 sb r2,0x0038(r4)		Store SP = 1
0005dff0: 10a00003 beq r5,r0,0x0005e000		Branch if not Removing Drops
0005dff4: 00000000 nop
0005dff8: a0800163 sb r0,0x0163(r4)		Store War Trophy = 0
0005dffc: a0800164 sb r0,0x0164(r4)		Store Bonus Money Mod = 0
0005e000: 0c017505 jal 0x0005d414		Status Initialization
0005e004: 00000000 nop
0005e008: 8fbf0010 lw r31,0x0010(r29)
0005e00c: 27bd0018 addiu r29,r29,0x0018
0005e010: 03e00008 jr r31
0005e014: 00000000 nop

Return Locations

BATTLE.BIN
0017f368
0017f55c
0017f9cc