Difference between revisions of "Get ability's Move and Jump increase values"

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
(Return Locations)
 
(2 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
  00122e9c: 27a40010 addiu r4,r29,0x0010
 
  00122e9c: 27a40010 addiu r4,r29,0x0010
 
  00122ea0: afbf0044 sw r31,0x0044(r29)
 
  00122ea0: afbf0044 sw r31,0x0044(r29)
  00122ea4: 0c048b90 jal 0x00122e40 #clear some of r4 and a bunch of r5
+
  00122ea4: 0c048b90 jal 0x00122e40 # [[Clear some data at r4 and r5]]
 
  00122ea8: afb20040 sw r18,0x0040(r29)
 
  00122ea8: afb20040 sw r18,0x0040(r29)
 
  00122eac: 2602fe1a addiu r2,r16,0xfe1a #ability ID - 0x1e6 (movement ability ID
 
  00122eac: 2602fe1a addiu r2,r16,0xfe1a #ability ID - 0x1e6 (movement ability ID
Line 35: Line 35:
 
  00122f08: 00000000 nop
 
  00122f08: 00000000 nop
 
</font>
 
</font>
 +
 +
==Return Locations==
 +
 +
  122f48: [[Find stat changes due to equipped abilities]]

Latest revision as of 05:42, 1 March 2025

00122e88: 27bdffb8 addiu r29,r29,0xffb8
00122e8c: afb00038 sw r16,0x0038(r29)
00122e90: 00808021 addu r16,r4,r0			#r16 = ability ID
00122e94: afb1003c sw r17,0x003c(r29)
00122e98: 00a08821 addu r17,r5,r0			#r17 = stack pointer
00122e9c: 27a40010 addiu r4,r29,0x0010
00122ea0: afbf0044 sw r31,0x0044(r29)
00122ea4: 0c048b90 jal 0x00122e40			# Clear some data at r4 and r5
00122ea8: afb20040 sw r18,0x0040(r29)
00122eac: 2602fe1a addiu r2,r16,0xfe1a			#ability ID - 0x1e6 (movement ability ID
00122eb0: 3042ffff andi r2,r2,0xffff
00122eb4: 2c420003 sltiu r2,r2,0x0003			#set if less than 3 (+ move ability)
00122eb8: 10400004 beq r2,r0,0x00122ecc		#branch if + jump (or other)
00122ebc: 02009021 addu r18,r16,r0
00122ec0: 2602fe1b addiu r2,r16,0xfe1b			#ability ID - 0x1e6
00122ec4: 08048bb4 j 0x00122ed0
00122ec8: a6220000 sh r2,0x0000(r17)			#store as. move. (i swear to fucking god...)
00122ecc: a6200000 sh r0,0x0000(r17)			#if jump or otherwise,
00122ed0: 2642fe17 addiu r2,r18,0xfe17
00122ed4: 3042ffff andi r2,r2,0xffff
00122ed8: 2c420003 sltiu r2,r2,0x0003			#set if jump ability
00122edc: 10400003 beq r2,r0,0x00122eec		#branch if not
00122ee0: 2642fe18 addiu r2,r18,0xfe18
00122ee4: 08048bbc j 0x00122ef0
00122ee8: a6220004 sh r2,0x0004(r17)			#just store the fucking ability ID - a large number as the preview for the ability (Squeenix I am going to kill you.)
00122eec: a6200004 sh r0,0x0004(r17)			#otherwise store no jump
00122ef0: 8fbf0044 lw r31,0x0044(r29)
00122ef4: 8fb20040 lw r18,0x0040(r29)
00122ef8: 8fb1003c lw r17,0x003c(r29)
00122efc: 8fb00038 lw r16,0x0038(r29)
00122f00: 27bd0048 addiu r29,r29,0x0048
00122f04: 03e00008 jr r31
00122f08: 00000000 nop

Return Locations

 122f48: Find stat changes due to equipped abilities