Job Level up animation and report

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search

00071e68: 27bdffe0 addiu r29,r29,0xffe0
00071e6c: afb00018 sw r16,0x0018(r29)
00071e70: 00808021 addu r16,r4,r0                   r16 = Misc Unit Data pointer for acting unit
00071e74: afbf001c sw r31,0x001c(r29)
00071e78: 920201b3 lbu r2,0x01b3(r16)               r2 = Misc Unit Data offset 0x1b3 - Job Level
00071e7c: 00000000 nop
00071e80: 10400014 beq r2,r0,0x00071ed4             Branch to end if not job leveling up
00071e84: 00001021 addu r2,r0,r0                    r2 = 0
00071e88: 0c04ebb7 jal 0x0013aedc                   0013aedc - 0013aee8
00071e8c: 340400b4 ori r4,r0,0x00b4
00071e90: 3404000a ori r4,r0,0x000a
00071e94: 8e020134 lw r2,0x0134(r16)                r2 = Pointer to unit's Battle Stats
00071e98: 3405183e ori r5,r0,0x183e                 r5 = job level up text
00071e9c: 9046018a lbu r6,0x018a(r2)                r6 = Load unit ID from Battle Stat offset 0x018a. This ID is used for reporting the name of the unit that job leveled up.
00071ea0: 34020001 ori r2,r0,0x0001
00071ea4: afa20010 sw r2,0x0010(r29)
00071ea8: 0c05066e jal 0x001419b8                   System function setup routine
00071eac: 00c03821 addu r7,r6,r0                    r7 = Unit ID of unit that leveled up
00071eb0: 0c020b31 jal 0x00082cc4                   Set Level up/Job level up animations?
00071eb4: 02002021 addu r4,r16,r0                   r4 = Misc Unit Data pointer for acting unit
00071eb8: 0c01a0f9 jal 0x000683e4                   Transfer Unit's X/Y/Map Level
00071ebc: 02002021 addu r4,r16,r0                   r4 = Misc Unit Data pointer for acting unit
00071ec0: 0c01a2ad jal 0x00068ab4                   Level Up: Set Secondary Effect Struct
00071ec4: 02002021 addu r4,r16,r0                   r4 = Misc Unit Data pointer for acting unit
00071ec8: 0c010f48 jal 0x00043d20                   Play Tune
00071ecc: 34040003 ori r4,r0,0x0003                 play General Happiness S
00071ed0: 34020001 ori r2,r0,0x0001
00071ed4: 8fbf001c lw r31,0x001c(r29)
00071ed8: 8fb00018 lw r16,0x0018(r29)
00071edc: 27bd0020 addiu r29,r29,0x0020
00071ee0: 03e00008 jr r31
00071ee4: 00000000 nop