mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
commit
0e554072d1
@ -1,34 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel BindHandleEvent
|
||||
/* 1A7500 80278C20 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1A7504 80278C24 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1A7508 80278C28 0080902D */ daddu $s2, $a0, $zero
|
||||
/* 1A750C 80278C2C AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* 1A7510 80278C30 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1A7514 80278C34 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1A7518 80278C38 8E51000C */ lw $s1, 0xc($s2)
|
||||
/* 1A751C 80278C3C 8E250000 */ lw $a1, ($s1)
|
||||
/* 1A7520 80278C40 0C0B1EAF */ jal get_variable
|
||||
/* 1A7524 80278C44 26310004 */ addiu $s1, $s1, 4
|
||||
/* 1A7528 80278C48 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1A752C 80278C4C 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1A7530 80278C50 16020002 */ bne $s0, $v0, .L80278C5C
|
||||
/* 1A7534 80278C54 00000000 */ nop
|
||||
/* 1A7538 80278C58 8E500148 */ lw $s0, 0x148($s2)
|
||||
.L80278C5C:
|
||||
/* 1A753C 80278C5C 8E250000 */ lw $a1, ($s1)
|
||||
/* 1A7540 80278C60 0C0B1EAF */ jal get_variable
|
||||
/* 1A7544 80278C64 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 1A7548 80278C68 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 1A754C 80278C6C 0C09A75B */ jal get_actor
|
||||
/* 1A7550 80278C70 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1A7554 80278C74 AC5001C8 */ sw $s0, 0x1c8($v0)
|
||||
/* 1A7558 80278C78 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* 1A755C 80278C7C 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1A7560 80278C80 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1A7564 80278C84 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1A7568 80278C88 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1A756C 80278C8C 03E00008 */ jr $ra
|
||||
/* 1A7570 80278C90 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,34 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel BindNextTurn
|
||||
/* 1A7574 80278C94 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1A7578 80278C98 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1A757C 80278C9C 0080902D */ daddu $s2, $a0, $zero
|
||||
/* 1A7580 80278CA0 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* 1A7584 80278CA4 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1A7588 80278CA8 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1A758C 80278CAC 8E51000C */ lw $s1, 0xc($s2)
|
||||
/* 1A7590 80278CB0 8E250000 */ lw $a1, ($s1)
|
||||
/* 1A7594 80278CB4 0C0B1EAF */ jal get_variable
|
||||
/* 1A7598 80278CB8 26310004 */ addiu $s1, $s1, 4
|
||||
/* 1A759C 80278CBC 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1A75A0 80278CC0 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1A75A4 80278CC4 16020002 */ bne $s0, $v0, .L80278CD0
|
||||
/* 1A75A8 80278CC8 00000000 */ nop
|
||||
/* 1A75AC 80278CCC 8E500148 */ lw $s0, 0x148($s2)
|
||||
.L80278CD0:
|
||||
/* 1A75B0 80278CD0 8E250000 */ lw $a1, ($s1)
|
||||
/* 1A75B4 80278CD4 0C0B1EAF */ jal get_variable
|
||||
/* 1A75B8 80278CD8 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 1A75BC 80278CDC 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 1A75C0 80278CE0 0C09A75B */ jal get_actor
|
||||
/* 1A75C4 80278CE4 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1A75C8 80278CE8 AC5001CC */ sw $s0, 0x1cc($v0)
|
||||
/* 1A75CC 80278CEC 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* 1A75D0 80278CF0 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1A75D4 80278CF4 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1A75D8 80278CF8 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1A75DC 80278CFC 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1A75E0 80278D00 03E00008 */ jr $ra
|
||||
/* 1A75E4 80278D04 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,34 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel BindTakeTurn
|
||||
/* 1A7210 80278930 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1A7214 80278934 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1A7218 80278938 0080902D */ daddu $s2, $a0, $zero
|
||||
/* 1A721C 8027893C AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* 1A7220 80278940 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1A7224 80278944 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1A7228 80278948 8E51000C */ lw $s1, 0xc($s2)
|
||||
/* 1A722C 8027894C 8E250000 */ lw $a1, ($s1)
|
||||
/* 1A7230 80278950 0C0B1EAF */ jal get_variable
|
||||
/* 1A7234 80278954 26310004 */ addiu $s1, $s1, 4
|
||||
/* 1A7238 80278958 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1A723C 8027895C 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1A7240 80278960 16020002 */ bne $s0, $v0, .L8027896C
|
||||
/* 1A7244 80278964 00000000 */ nop
|
||||
/* 1A7248 80278968 8E500148 */ lw $s0, 0x148($s2)
|
||||
.L8027896C:
|
||||
/* 1A724C 8027896C 8E250000 */ lw $a1, ($s1)
|
||||
/* 1A7250 80278970 0C0B1EAF */ jal get_variable
|
||||
/* 1A7254 80278974 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 1A7258 80278978 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 1A725C 8027897C 0C09A75B */ jal get_actor
|
||||
/* 1A7260 80278980 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1A7264 80278984 AC5001C4 */ sw $s0, 0x1c4($v0)
|
||||
/* 1A7268 80278988 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* 1A726C 8027898C 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1A7270 80278990 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1A7274 80278994 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1A7278 80278998 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1A727C 8027899C 03E00008 */ jr $ra
|
||||
/* 1A7280 802789A0 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,34 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel DispatchEvent
|
||||
/* 1ABB44 8027D264 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1ABB48 8027D268 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1ABB4C 8027D26C 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 1ABB50 8027D270 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 1ABB54 8027D274 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1ABB58 8027D278 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 1ABB5C 8027D27C 8E050000 */ lw $a1, ($s0)
|
||||
/* 1ABB60 8027D280 0C0B1EAF */ jal get_variable
|
||||
/* 1ABB64 8027D284 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1ABB68 8027D288 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1ABB6C 8027D28C 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1ABB70 8027D290 14820002 */ bne $a0, $v0, .L8027D29C
|
||||
/* 1ABB74 8027D294 00000000 */ nop
|
||||
/* 1ABB78 8027D298 8E240148 */ lw $a0, 0x148($s1)
|
||||
.L8027D29C:
|
||||
/* 1ABB7C 8027D29C 0C09A75B */ jal get_actor
|
||||
/* 1ABB80 8027D2A0 00000000 */ nop
|
||||
/* 1ABB84 8027D2A4 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1ABB88 8027D2A8 8E050000 */ lw $a1, ($s0)
|
||||
/* 1ABB8C 8027D2AC 0C0B1EAF */ jal get_variable
|
||||
/* 1ABB90 8027D2B0 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1ABB94 8027D2B4 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 1ABB98 8027D2B8 0C09DC58 */ jal dispatch_event_actor
|
||||
/* 1ABB9C 8027D2BC 0040282D */ daddu $a1, $v0, $zero
|
||||
/* 1ABBA0 8027D2C0 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 1ABBA4 8027D2C4 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1ABBA8 8027D2C8 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1ABBAC 8027D2CC 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1ABBB0 8027D2D0 03E00008 */ jr $ra
|
||||
/* 1ABBB4 8027D2D4 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,51 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel EnableActorBlur
|
||||
/* 1ABE5C 8027D57C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1ABE60 8027D580 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1ABE64 8027D584 0080902D */ daddu $s2, $a0, $zero
|
||||
/* 1ABE68 8027D588 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* 1ABE6C 8027D58C AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1ABE70 8027D590 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1ABE74 8027D594 8E50000C */ lw $s0, 0xc($s2)
|
||||
/* 1ABE78 8027D598 8E050000 */ lw $a1, ($s0)
|
||||
/* 1ABE7C 8027D59C 0C0B1EAF */ jal get_variable
|
||||
/* 1ABE80 8027D5A0 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1ABE84 8027D5A4 0040882D */ daddu $s1, $v0, $zero
|
||||
/* 1ABE88 8027D5A8 8E050000 */ lw $a1, ($s0)
|
||||
/* 1ABE8C 8027D5AC 0C0B1EAF */ jal get_variable
|
||||
/* 1ABE90 8027D5B0 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 1ABE94 8027D5B4 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1ABE98 8027D5B8 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1ABE9C 8027D5BC 16220002 */ bne $s1, $v0, .L8027D5C8
|
||||
/* 1ABEA0 8027D5C0 00000000 */ nop
|
||||
/* 1ABEA4 8027D5C4 8E510148 */ lw $s1, 0x148($s2)
|
||||
.L8027D5C8:
|
||||
/* 1ABEA8 8027D5C8 0C09A75B */ jal get_actor
|
||||
/* 1ABEAC 8027D5CC 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1ABEB0 8027D5D0 16000005 */ bnez $s0, .L8027D5E8
|
||||
/* 1ABEB4 8027D5D4 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1ABEB8 8027D5D8 0C095157 */ jal disable_actor_blur
|
||||
/* 1ABEBC 8027D5DC 00000000 */ nop
|
||||
/* 1ABEC0 8027D5E0 0809F583 */ j .L8027D60C
|
||||
/* 1ABEC4 8027D5E4 00000000 */ nop
|
||||
.L8027D5E8:
|
||||
/* 1ABEC8 8027D5E8 24020001 */ addiu $v0, $zero, 1
|
||||
/* 1ABECC 8027D5EC 16020005 */ bne $s0, $v0, .L8027D604
|
||||
/* 1ABED0 8027D5F0 00000000 */ nop
|
||||
/* 1ABED4 8027D5F4 0C0950B3 */ jal enable_actor_blur
|
||||
/* 1ABED8 8027D5F8 00000000 */ nop
|
||||
/* 1ABEDC 8027D5FC 0809F583 */ j .L8027D60C
|
||||
/* 1ABEE0 8027D600 00000000 */ nop
|
||||
.L8027D604:
|
||||
/* 1ABEE4 8027D604 0C09516B */ jal reset_actor_blur
|
||||
/* 1ABEE8 8027D608 00000000 */ nop
|
||||
.L8027D60C:
|
||||
/* 1ABEEC 8027D60C 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* 1ABEF0 8027D610 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1ABEF4 8027D614 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1ABEF8 8027D618 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1ABEFC 8027D61C 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1ABF00 8027D620 03E00008 */ jr $ra
|
||||
/* 1ABF04 8027D624 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,41 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel GetActorSize
|
||||
/* 1AC1C0 8027D8E0 27BDFFD8 */ addiu $sp, $sp, -0x28
|
||||
/* 1AC1C4 8027D8E4 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AC1C8 8027D8E8 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 1AC1CC 8027D8EC AFBF0020 */ sw $ra, 0x20($sp)
|
||||
/* 1AC1D0 8027D8F0 AFB3001C */ sw $s3, 0x1c($sp)
|
||||
/* 1AC1D4 8027D8F4 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1AC1D8 8027D8F8 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AC1DC 8027D8FC 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 1AC1E0 8027D900 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AC1E4 8027D904 0C0B1EAF */ jal get_variable
|
||||
/* 1AC1E8 8027D908 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AC1EC 8027D90C 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1AC1F0 8027D910 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AC1F4 8027D914 8E120000 */ lw $s2, ($s0)
|
||||
/* 1AC1F8 8027D918 14820002 */ bne $a0, $v0, .L8027D924
|
||||
/* 1AC1FC 8027D91C 8E130004 */ lw $s3, 4($s0)
|
||||
/* 1AC200 8027D920 8E240148 */ lw $a0, 0x148($s1)
|
||||
.L8027D924:
|
||||
/* 1AC204 8027D924 0C09A75B */ jal get_actor
|
||||
/* 1AC208 8027D928 00000000 */ nop
|
||||
/* 1AC20C 8027D92C 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AC210 8027D930 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1AC214 8027D934 92060191 */ lbu $a2, 0x191($s0)
|
||||
/* 1AC218 8027D938 0C0B2026 */ jal set_variable
|
||||
/* 1AC21C 8027D93C 0240282D */ daddu $a1, $s2, $zero
|
||||
/* 1AC220 8027D940 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AC224 8027D944 92060190 */ lbu $a2, 0x190($s0)
|
||||
/* 1AC228 8027D948 0C0B2026 */ jal set_variable
|
||||
/* 1AC22C 8027D94C 0260282D */ daddu $a1, $s3, $zero
|
||||
/* 1AC230 8027D950 8FBF0020 */ lw $ra, 0x20($sp)
|
||||
/* 1AC234 8027D954 8FB3001C */ lw $s3, 0x1c($sp)
|
||||
/* 1AC238 8027D958 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1AC23C 8027D95C 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AC240 8027D960 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AC244 8027D964 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AC248 8027D968 03E00008 */ jr $ra
|
||||
/* 1AC24C 8027D96C 27BD0028 */ addiu $sp, $sp, 0x28
|
@ -1,31 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel GetCurrentActorType
|
||||
/* 1AC3B4 8027DAD4 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1AC3B8 8027DAD8 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AC3BC 8027DADC 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 1AC3C0 8027DAE0 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 1AC3C4 8027DAE4 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AC3C8 8027DAE8 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 1AC3CC 8027DAEC 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AC3D0 8027DAF0 0C0B1EAF */ jal get_variable
|
||||
/* 1AC3D4 8027DAF4 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AC3D8 8027DAF8 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1AC3DC 8027DAFC 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AC3E0 8027DB00 14820002 */ bne $a0, $v0, .L8027DB0C
|
||||
/* 1AC3E4 8027DB04 8E100000 */ lw $s0, ($s0)
|
||||
/* 1AC3E8 8027DB08 8E240148 */ lw $a0, 0x148($s1)
|
||||
.L8027DB0C:
|
||||
/* 1AC3EC 8027DB0C 0C09A75B */ jal get_actor
|
||||
/* 1AC3F0 8027DB10 00000000 */ nop
|
||||
/* 1AC3F4 8027DB14 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AC3F8 8027DB18 90460136 */ lbu $a2, 0x136($v0)
|
||||
/* 1AC3FC 8027DB1C 0C0B2026 */ jal set_variable
|
||||
/* 1AC400 8027DB20 0200282D */ daddu $a1, $s0, $zero
|
||||
/* 1AC404 8027DB24 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 1AC408 8027DB28 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AC40C 8027DB2C 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AC410 8027DB30 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AC414 8027DB34 03E00008 */ jr $ra
|
||||
/* 1AC418 8027DB38 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,15 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel GetEncounterState
|
||||
/* 1AC0A4 8027D7C4 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 1AC0A8 8027D7C8 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 1AC0AC 8027D7CC 8C82000C */ lw $v0, 0xc($a0)
|
||||
/* 1AC0B0 8027D7D0 3C06800B */ lui $a2, 0x800b
|
||||
/* 1AC0B4 8027D7D4 80C60F15 */ lb $a2, 0xf15($a2)
|
||||
/* 1AC0B8 8027D7D8 0C0B2026 */ jal set_variable
|
||||
/* 1AC0BC 8027D7DC 8C450000 */ lw $a1, ($v0)
|
||||
/* 1AC0C0 8027D7E0 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 1AC0C4 8027D7E4 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AC0C8 8027D7E8 03E00008 */ jr $ra
|
||||
/* 1AC0CC 8027D7EC 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,31 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel GetEnemyMaxHP
|
||||
/* 1AB028 8027C748 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1AB02C 8027C74C AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AB030 8027C750 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 1AB034 8027C754 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 1AB038 8027C758 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AB03C 8027C75C 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 1AB040 8027C760 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AB044 8027C764 0C0B1EAF */ jal get_variable
|
||||
/* 1AB048 8027C768 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AB04C 8027C76C 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1AB050 8027C770 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AB054 8027C774 14820002 */ bne $a0, $v0, .L8027C780
|
||||
/* 1AB058 8027C778 00000000 */ nop
|
||||
/* 1AB05C 8027C77C 8E240148 */ lw $a0, 0x148($s1)
|
||||
.L8027C780:
|
||||
/* 1AB060 8027C780 0C09A75B */ jal get_actor
|
||||
/* 1AB064 8027C784 8E100000 */ lw $s0, ($s0)
|
||||
/* 1AB068 8027C788 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AB06C 8027C78C 804601B9 */ lb $a2, 0x1b9($v0)
|
||||
/* 1AB070 8027C790 0C0B2026 */ jal set_variable
|
||||
/* 1AB074 8027C794 0200282D */ daddu $a1, $s0, $zero
|
||||
/* 1AB078 8027C798 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 1AB07C 8027C79C 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AB080 8027C7A0 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AB084 8027C7A4 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AB088 8027C7A8 03E00008 */ jr $ra
|
||||
/* 1AB08C 8027C7AC 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,31 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel GetLastDamage
|
||||
/* 1AC41C 8027DB3C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1AC420 8027DB40 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AC424 8027DB44 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 1AC428 8027DB48 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 1AC42C 8027DB4C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AC430 8027DB50 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 1AC434 8027DB54 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AC438 8027DB58 0C0B1EAF */ jal get_variable
|
||||
/* 1AC43C 8027DB5C 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AC440 8027DB60 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1AC444 8027DB64 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AC448 8027DB68 14820002 */ bne $a0, $v0, .L8027DB74
|
||||
/* 1AC44C 8027DB6C 00000000 */ nop
|
||||
/* 1AC450 8027DB70 8E240148 */ lw $a0, 0x148($s1)
|
||||
.L8027DB74:
|
||||
/* 1AC454 8027DB74 0C09A75B */ jal get_actor
|
||||
/* 1AC458 8027DB78 8E100000 */ lw $s0, ($s0)
|
||||
/* 1AC45C 8027DB7C 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AC460 8027DB80 844601F8 */ lh $a2, 0x1f8($v0)
|
||||
/* 1AC464 8027DB84 0C0B2026 */ jal set_variable
|
||||
/* 1AC468 8027DB88 0200282D */ daddu $a1, $s0, $zero
|
||||
/* 1AC46C 8027DB8C 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 1AC470 8027DB90 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AC474 8027DB94 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AC478 8027DB98 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AC47C 8027DB9C 03E00008 */ jr $ra
|
||||
/* 1AC480 8027DBA0 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,31 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel GetLastEvent
|
||||
/* 1AADC0 8027C4E0 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1AADC4 8027C4E4 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AADC8 8027C4E8 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 1AADCC 8027C4EC AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 1AADD0 8027C4F0 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AADD4 8027C4F4 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 1AADD8 8027C4F8 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AADDC 8027C4FC 0C0B1EAF */ jal get_variable
|
||||
/* 1AADE0 8027C500 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AADE4 8027C504 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1AADE8 8027C508 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AADEC 8027C50C 14820002 */ bne $a0, $v0, .L8027C518
|
||||
/* 1AADF0 8027C510 00000000 */ nop
|
||||
/* 1AADF4 8027C514 8E240148 */ lw $a0, 0x148($s1)
|
||||
.L8027C518:
|
||||
/* 1AADF8 8027C518 0C09A75B */ jal get_actor
|
||||
/* 1AADFC 8027C51C 8E100000 */ lw $s0, ($s0)
|
||||
/* 1AAE00 8027C520 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AAE04 8027C524 804601F0 */ lb $a2, 0x1f0($v0)
|
||||
/* 1AAE08 8027C528 0C0B2026 */ jal set_variable
|
||||
/* 1AAE0C 8027C52C 0200282D */ daddu $a1, $s0, $zero
|
||||
/* 1AAE10 8027C530 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 1AAE14 8027C534 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AAE18 8027C538 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AAE1C 8027C53C 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AAE20 8027C540 03E00008 */ jr $ra
|
||||
/* 1AAE24 8027C544 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,32 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel GetOriginalActorType
|
||||
/* 1AC348 8027DA68 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1AC34C 8027DA6C AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AC350 8027DA70 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 1AC354 8027DA74 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 1AC358 8027DA78 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AC35C 8027DA7C 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 1AC360 8027DA80 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AC364 8027DA84 0C0B1EAF */ jal get_variable
|
||||
/* 1AC368 8027DA88 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AC36C 8027DA8C 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1AC370 8027DA90 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AC374 8027DA94 14820002 */ bne $a0, $v0, .L8027DAA0
|
||||
/* 1AC378 8027DA98 8E100000 */ lw $s0, ($s0)
|
||||
/* 1AC37C 8027DA9C 8E240148 */ lw $a0, 0x148($s1)
|
||||
.L8027DAA0:
|
||||
/* 1AC380 8027DAA0 0C09A75B */ jal get_actor
|
||||
/* 1AC384 8027DAA4 00000000 */ nop
|
||||
/* 1AC388 8027DAA8 8C420008 */ lw $v0, 8($v0)
|
||||
/* 1AC38C 8027DAAC 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AC390 8027DAB0 90460005 */ lbu $a2, 5($v0)
|
||||
/* 1AC394 8027DAB4 0C0B2026 */ jal set_variable
|
||||
/* 1AC398 8027DAB8 0200282D */ daddu $a1, $s0, $zero
|
||||
/* 1AC39C 8027DABC 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 1AC3A0 8027DAC0 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AC3A4 8027DAC4 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AC3A8 8027DAC8 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AC3AC 8027DACC 03E00008 */ jr $ra
|
||||
/* 1AC3B0 8027DAD0 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,35 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel PauseTakeTurn
|
||||
/* 1A7284 802789A4 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1A7288 802789A8 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1A728C 802789AC 0080902D */ daddu $s2, $a0, $zero
|
||||
/* 1A7290 802789B0 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* 1A7294 802789B4 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1A7298 802789B8 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1A729C 802789BC 8E51000C */ lw $s1, 0xc($s2)
|
||||
/* 1A72A0 802789C0 8E250000 */ lw $a1, ($s1)
|
||||
/* 1A72A4 802789C4 0C0B1EAF */ jal get_variable
|
||||
/* 1A72A8 802789C8 26310004 */ addiu $s1, $s1, 4
|
||||
/* 1A72AC 802789CC 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1A72B0 802789D0 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1A72B4 802789D4 16020002 */ bne $s0, $v0, .L802789E0
|
||||
/* 1A72B8 802789D8 00000000 */ nop
|
||||
/* 1A72BC 802789DC 8E500148 */ lw $s0, 0x148($s2)
|
||||
.L802789E0:
|
||||
/* 1A72C0 802789E0 8E250000 */ lw $a1, ($s1)
|
||||
/* 1A72C4 802789E4 0C0B1EAF */ jal get_variable
|
||||
/* 1A72C8 802789E8 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 1A72CC 802789EC 0C09A75B */ jal get_actor
|
||||
/* 1A72D0 802789F0 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 1A72D4 802789F4 8C4401E4 */ lw $a0, 0x1e4($v0)
|
||||
/* 1A72D8 802789F8 0C0B1108 */ jal suspend_all_script
|
||||
/* 1A72DC 802789FC 00000000 */ nop
|
||||
/* 1A72E0 80278A00 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* 1A72E4 80278A04 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1A72E8 80278A08 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1A72EC 80278A0C 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1A72F0 80278A10 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1A72F4 80278A14 03E00008 */ jr $ra
|
||||
/* 1A72F8 80278A18 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,35 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel ResumeTakeTurn
|
||||
/* 1A72FC 80278A1C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1A7300 80278A20 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1A7304 80278A24 0080902D */ daddu $s2, $a0, $zero
|
||||
/* 1A7308 80278A28 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* 1A730C 80278A2C AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1A7310 80278A30 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1A7314 80278A34 8E51000C */ lw $s1, 0xc($s2)
|
||||
/* 1A7318 80278A38 8E250000 */ lw $a1, ($s1)
|
||||
/* 1A731C 80278A3C 0C0B1EAF */ jal get_variable
|
||||
/* 1A7320 80278A40 26310004 */ addiu $s1, $s1, 4
|
||||
/* 1A7324 80278A44 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1A7328 80278A48 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1A732C 80278A4C 16020002 */ bne $s0, $v0, .L80278A58
|
||||
/* 1A7330 80278A50 00000000 */ nop
|
||||
/* 1A7334 80278A54 8E500148 */ lw $s0, 0x148($s2)
|
||||
.L80278A58:
|
||||
/* 1A7338 80278A58 8E250000 */ lw $a1, ($s1)
|
||||
/* 1A733C 80278A5C 0C0B1EAF */ jal get_variable
|
||||
/* 1A7340 80278A60 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 1A7344 80278A64 0C09A75B */ jal get_actor
|
||||
/* 1A7348 80278A68 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 1A734C 80278A6C 8C4401E4 */ lw $a0, 0x1e4($v0)
|
||||
/* 1A7350 80278A70 0C0B1123 */ jal resume_all_script
|
||||
/* 1A7354 80278A74 00000000 */ nop
|
||||
/* 1A7358 80278A78 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* 1A735C 80278A7C 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1A7360 80278A80 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1A7364 80278A84 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1A7368 80278A88 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1A736C 80278A8C 03E00008 */ jr $ra
|
||||
/* 1A7370 80278A90 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,42 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel SetDefenseTable
|
||||
/* 1AB354 8027CA74 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1AB358 8027CA78 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AB35C 8027CA7C 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 1AB360 8027CA80 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* 1AB364 8027CA84 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1AB368 8027CA88 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AB36C 8027CA8C 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 1AB370 8027CA90 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AB374 8027CA94 0C0B1EAF */ jal get_variable
|
||||
/* 1AB378 8027CA98 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AB37C 8027CA9C 0040902D */ daddu $s2, $v0, $zero
|
||||
/* 1AB380 8027CAA0 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AB384 8027CAA4 16420002 */ bne $s2, $v0, .L8027CAB0
|
||||
/* 1AB388 8027CAA8 00000000 */ nop
|
||||
/* 1AB38C 8027CAAC 8E320148 */ lw $s2, 0x148($s1)
|
||||
.L8027CAB0:
|
||||
/* 1AB390 8027CAB0 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AB394 8027CAB4 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AB398 8027CAB8 0C0B1EAF */ jal get_variable
|
||||
/* 1AB39C 8027CABC 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AB3A0 8027CAC0 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AB3A4 8027CAC4 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AB3A8 8027CAC8 0C0B1EAF */ jal get_variable
|
||||
/* 1AB3AC 8027CACC 0040882D */ daddu $s1, $v0, $zero
|
||||
/* 1AB3B0 8027CAD0 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 1AB3B4 8027CAD4 0C09A75B */ jal get_actor
|
||||
/* 1AB3B8 8027CAD8 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1AB3BC 8027CADC 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1AB3C0 8027CAE0 0C099117 */ jal get_actor_part
|
||||
/* 1AB3C4 8027CAE4 0220282D */ daddu $a1, $s1, $zero
|
||||
/* 1AB3C8 8027CAE8 AC500078 */ sw $s0, 0x78($v0)
|
||||
/* 1AB3CC 8027CAEC 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* 1AB3D0 8027CAF0 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1AB3D4 8027CAF4 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AB3D8 8027CAF8 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AB3DC 8027CAFC 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AB3E0 8027CB00 03E00008 */ jr $ra
|
||||
/* 1AB3E4 8027CB04 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,42 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel SetIdleAnimations
|
||||
/* 1AB45C 8027CB7C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1AB460 8027CB80 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AB464 8027CB84 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 1AB468 8027CB88 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* 1AB46C 8027CB8C AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1AB470 8027CB90 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AB474 8027CB94 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 1AB478 8027CB98 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AB47C 8027CB9C 0C0B1EAF */ jal get_variable
|
||||
/* 1AB480 8027CBA0 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AB484 8027CBA4 0040902D */ daddu $s2, $v0, $zero
|
||||
/* 1AB488 8027CBA8 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AB48C 8027CBAC 16420002 */ bne $s2, $v0, .L8027CBB8
|
||||
/* 1AB490 8027CBB0 00000000 */ nop
|
||||
/* 1AB494 8027CBB4 8E320148 */ lw $s2, 0x148($s1)
|
||||
.L8027CBB8:
|
||||
/* 1AB498 8027CBB8 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AB49C 8027CBBC 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AB4A0 8027CBC0 0C0B1EAF */ jal get_variable
|
||||
/* 1AB4A4 8027CBC4 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AB4A8 8027CBC8 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AB4AC 8027CBCC 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AB4B0 8027CBD0 0C0B1EAF */ jal get_variable
|
||||
/* 1AB4B4 8027CBD4 0040882D */ daddu $s1, $v0, $zero
|
||||
/* 1AB4B8 8027CBD8 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 1AB4BC 8027CBDC 0C09A75B */ jal get_actor
|
||||
/* 1AB4C0 8027CBE0 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1AB4C4 8027CBE4 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1AB4C8 8027CBE8 0C099117 */ jal get_actor_part
|
||||
/* 1AB4CC 8027CBEC 0220282D */ daddu $a1, $s1, $zero
|
||||
/* 1AB4D0 8027CBF0 AC500094 */ sw $s0, 0x94($v0)
|
||||
/* 1AB4D4 8027CBF4 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* 1AB4D8 8027CBF8 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1AB4DC 8027CBFC 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AB4E0 8027CC00 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AB4E4 8027CC04 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AB4E8 8027CC08 03E00008 */ jr $ra
|
||||
/* 1AB4EC 8027CC0C 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,34 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel SetStatusTable
|
||||
/* 1AB3E8 8027CB08 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1AB3EC 8027CB0C AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1AB3F0 8027CB10 0080902D */ daddu $s2, $a0, $zero
|
||||
/* 1AB3F4 8027CB14 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* 1AB3F8 8027CB18 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AB3FC 8027CB1C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AB400 8027CB20 8E51000C */ lw $s1, 0xc($s2)
|
||||
/* 1AB404 8027CB24 8E250000 */ lw $a1, ($s1)
|
||||
/* 1AB408 8027CB28 0C0B1EAF */ jal get_variable
|
||||
/* 1AB40C 8027CB2C 26310004 */ addiu $s1, $s1, 4
|
||||
/* 1AB410 8027CB30 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1AB414 8027CB34 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AB418 8027CB38 16020002 */ bne $s0, $v0, .L8027CB44
|
||||
/* 1AB41C 8027CB3C 00000000 */ nop
|
||||
/* 1AB420 8027CB40 8E500148 */ lw $s0, 0x148($s2)
|
||||
.L8027CB44:
|
||||
/* 1AB424 8027CB44 8E250000 */ lw $a1, ($s1)
|
||||
/* 1AB428 8027CB48 0C0B1EAF */ jal get_variable
|
||||
/* 1AB42C 8027CB4C 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 1AB430 8027CB50 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 1AB434 8027CB54 0C09A75B */ jal get_actor
|
||||
/* 1AB438 8027CB58 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1AB43C 8027CB5C AC50020C */ sw $s0, 0x20c($v0)
|
||||
/* 1AB440 8027CB60 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* 1AB444 8027CB64 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1AB448 8027CB68 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AB44C 8027CB6C 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AB450 8027CB70 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AB454 8027CB74 03E00008 */ jr $ra
|
||||
/* 1AB458 8027CB78 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,37 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel SetTargetActor
|
||||
/* 1AAE28 8027C548 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1AAE2C 8027C54C AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1AAE30 8027C550 0080902D */ daddu $s2, $a0, $zero
|
||||
/* 1AAE34 8027C554 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* 1AAE38 8027C558 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AAE3C 8027C55C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AAE40 8027C560 8E51000C */ lw $s1, 0xc($s2)
|
||||
/* 1AAE44 8027C564 8E250000 */ lw $a1, ($s1)
|
||||
/* 1AAE48 8027C568 0C0B1EAF */ jal get_variable
|
||||
/* 1AAE4C 8027C56C 26310004 */ addiu $s1, $s1, 4
|
||||
/* 1AAE50 8027C570 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1AAE54 8027C574 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AAE58 8027C578 16020002 */ bne $s0, $v0, .L8027C584
|
||||
/* 1AAE5C 8027C57C 00000000 */ nop
|
||||
/* 1AAE60 8027C580 8E500148 */ lw $s0, 0x148($s2)
|
||||
.L8027C584:
|
||||
/* 1AAE64 8027C584 8E250000 */ lw $a1, ($s1)
|
||||
/* 1AAE68 8027C588 0C0B1EAF */ jal get_variable
|
||||
/* 1AAE6C 8027C58C 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 1AAE70 8027C590 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 1AAE74 8027C594 0C09A75B */ jal get_actor
|
||||
/* 1AAE78 8027C598 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 1AAE7C 8027C59C 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1AAE80 8027C5A0 24030001 */ addiu $v1, $zero, 1
|
||||
/* 1AAE84 8027C5A4 A4900428 */ sh $s0, 0x428($a0)
|
||||
/* 1AAE88 8027C5A8 A0830426 */ sb $v1, 0x426($a0)
|
||||
/* 1AAE8C 8027C5AC 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* 1AAE90 8027C5B0 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1AAE94 8027C5B4 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AAE98 8027C5B8 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AAE9C 8027C5BC 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AAEA0 8027C5C0 03E00008 */ jr $ra
|
||||
/* 1AAEA4 8027C5C4 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,12 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel YieldTurn
|
||||
/* 1AC0D0 8027D7F0 3C02800E */ lui $v0, %hi(gBattleStatus)
|
||||
/* 1AC0D4 8027D7F4 2442C070 */ addiu $v0, $v0, %lo(gBattleStatus)
|
||||
/* 1AC0D8 8027D7F8 8C430000 */ lw $v1, ($v0)
|
||||
/* 1AC0DC 8027D7FC 3C040020 */ lui $a0, 0x20
|
||||
/* 1AC0E0 8027D800 00641825 */ or $v1, $v1, $a0
|
||||
/* 1AC0E4 8027D804 AC430000 */ sw $v1, ($v0)
|
||||
/* 1AC0E8 8027D808 03E00008 */ jr $ra
|
||||
/* 1AC0EC 8027D80C 24020002 */ addiu $v0, $zero, 2
|
@ -1,26 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_8027D2D8
|
||||
/* 1ABBB8 8027D2D8 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 1ABBBC 8027D2DC AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1ABBC0 8027D2E0 0080802D */ daddu $s0, $a0, $zero
|
||||
/* 1ABBC4 8027D2E4 AFBF0014 */ sw $ra, 0x14($sp)
|
||||
/* 1ABBC8 8027D2E8 8E02000C */ lw $v0, 0xc($s0)
|
||||
/* 1ABBCC 8027D2EC 0C0B1EAF */ jal get_variable
|
||||
/* 1ABBD0 8027D2F0 8C450000 */ lw $a1, ($v0)
|
||||
/* 1ABBD4 8027D2F4 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1ABBD8 8027D2F8 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1ABBDC 8027D2FC 14820002 */ bne $a0, $v0, .L8027D308
|
||||
/* 1ABBE0 8027D300 00000000 */ nop
|
||||
/* 1ABBE4 8027D304 8E040148 */ lw $a0, 0x148($s0)
|
||||
.L8027D308:
|
||||
/* 1ABBE8 8027D308 0C09A75B */ jal get_actor
|
||||
/* 1ABBEC 8027D30C 00000000 */ nop
|
||||
/* 1ABBF0 8027D310 0C099AB7 */ jal func_80266ADC
|
||||
/* 1ABBF4 8027D314 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1ABBF8 8027D318 8FBF0014 */ lw $ra, 0x14($sp)
|
||||
/* 1ABBFC 8027D31C 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1ABC00 8027D320 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1ABC04 8027D324 03E00008 */ jr $ra
|
||||
/* 1ABC08 8027D328 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,26 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_8027D32C
|
||||
/* 1ABC0C 8027D32C 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 1ABC10 8027D330 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1ABC14 8027D334 0080802D */ daddu $s0, $a0, $zero
|
||||
/* 1ABC18 8027D338 AFBF0014 */ sw $ra, 0x14($sp)
|
||||
/* 1ABC1C 8027D33C 8E02000C */ lw $v0, 0xc($s0)
|
||||
/* 1ABC20 8027D340 0C0B1EAF */ jal get_variable
|
||||
/* 1ABC24 8027D344 8C450000 */ lw $a1, ($v0)
|
||||
/* 1ABC28 8027D348 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1ABC2C 8027D34C 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1ABC30 8027D350 14820002 */ bne $a0, $v0, .L8027D35C
|
||||
/* 1ABC34 8027D354 00000000 */ nop
|
||||
/* 1ABC38 8027D358 8E040148 */ lw $a0, 0x148($s0)
|
||||
.L8027D35C:
|
||||
/* 1ABC3C 8027D35C 0C09A75B */ jal get_actor
|
||||
/* 1ABC40 8027D360 00000000 */ nop
|
||||
/* 1ABC44 8027D364 0C099ABE */ jal func_80266AF8
|
||||
/* 1ABC48 8027D368 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1ABC4C 8027D36C 8FBF0014 */ lw $ra, 0x14($sp)
|
||||
/* 1ABC50 8027D370 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1ABC54 8027D374 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1ABC58 8027D378 03E00008 */ jr $ra
|
||||
/* 1ABC5C 8027D37C 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,26 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_8027D628
|
||||
/* 1ABF08 8027D628 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 1ABF0C 8027D62C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1ABF10 8027D630 0080802D */ daddu $s0, $a0, $zero
|
||||
/* 1ABF14 8027D634 AFBF0014 */ sw $ra, 0x14($sp)
|
||||
/* 1ABF18 8027D638 8E02000C */ lw $v0, 0xc($s0)
|
||||
/* 1ABF1C 8027D63C 0C0B1EAF */ jal get_variable
|
||||
/* 1ABF20 8027D640 8C450000 */ lw $a1, ($v0)
|
||||
/* 1ABF24 8027D644 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1ABF28 8027D648 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1ABF2C 8027D64C 14820002 */ bne $a0, $v0, .L8027D658
|
||||
/* 1ABF30 8027D650 00000000 */ nop
|
||||
/* 1ABF34 8027D654 8E040148 */ lw $a0, 0x148($s0)
|
||||
.L8027D658:
|
||||
/* 1ABF38 8027D658 0C09A75B */ jal get_actor
|
||||
/* 1ABF3C 8027D65C 00000000 */ nop
|
||||
/* 1ABF40 8027D660 0C095184 */ jal func_80254610
|
||||
/* 1ABF44 8027D664 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1ABF48 8027D668 8FBF0014 */ lw $ra, 0x14($sp)
|
||||
/* 1ABF4C 8027D66C 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1ABF50 8027D670 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1ABF54 8027D674 03E00008 */ jr $ra
|
||||
/* 1ABF58 8027D678 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,31 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_8027D75C
|
||||
/* 1AC03C 8027D75C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1AC040 8027D760 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1AC044 8027D764 0080882D */ daddu $s1, $a0, $zero
|
||||
/* 1AC048 8027D768 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 1AC04C 8027D76C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1AC050 8027D770 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* 1AC054 8027D774 8E050000 */ lw $a1, ($s0)
|
||||
/* 1AC058 8027D778 0C0B1EAF */ jal get_variable
|
||||
/* 1AC05C 8027D77C 26100004 */ addiu $s0, $s0, 4
|
||||
/* 1AC060 8027D780 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 1AC064 8027D784 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 1AC068 8027D788 14820002 */ bne $a0, $v0, .L8027D794
|
||||
/* 1AC06C 8027D78C 8E100000 */ lw $s0, ($s0)
|
||||
/* 1AC070 8027D790 8E240148 */ lw $a0, 0x148($s1)
|
||||
.L8027D794:
|
||||
/* 1AC074 8027D794 0C09A75B */ jal get_actor
|
||||
/* 1AC078 8027D798 00000000 */ nop
|
||||
/* 1AC07C 8027D79C 0220202D */ daddu $a0, $s1, $zero
|
||||
/* 1AC080 8027D7A0 80460208 */ lb $a2, 0x208($v0)
|
||||
/* 1AC084 8027D7A4 0C0B2026 */ jal set_variable
|
||||
/* 1AC088 8027D7A8 0200282D */ daddu $a1, $s0, $zero
|
||||
/* 1AC08C 8027D7AC 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 1AC090 8027D7B0 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1AC094 8027D7B4 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1AC098 8027D7B8 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1AC09C 8027D7BC 03E00008 */ jr $ra
|
||||
/* 1AC0A0 8027D7C0 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,18 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_8003EE98
|
||||
/* 1A298 8003EE98 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 1A29C 8003EE9C 10A00004 */ beqz $a1, .L8003EEB0
|
||||
/* 1A2A0 8003EEA0 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 1A2A4 8003EEA4 0000202D */ daddu $a0, $zero, $zero
|
||||
/* 1A2A8 8003EEA8 0C011740 */ jal func_80045D00
|
||||
/* 1A2AC 8003EEAC 2405003C */ addiu $a1, $zero, 0x3c
|
||||
.L8003EEB0:
|
||||
/* 1A2B0 8003EEB0 0C0117E9 */ jal func_80045FA4
|
||||
/* 1A2B4 8003EEB4 00000000 */ nop
|
||||
/* 1A2B8 8003EEB8 2C420001 */ sltiu $v0, $v0, 1
|
||||
/* 1A2BC 8003EEBC 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 1A2C0 8003EEC0 00021040 */ sll $v0, $v0, 1
|
||||
/* 1A2C4 8003EEC4 03E00008 */ jr $ra
|
||||
/* 1A2C8 8003EEC8 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,18 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_8003EECC
|
||||
/* 1A2CC 8003EECC 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* 1A2D0 8003EED0 10A00004 */ beqz $a1, .L8003EEE4
|
||||
/* 1A2D4 8003EED4 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* 1A2D8 8003EED8 24040001 */ addiu $a0, $zero, 1
|
||||
/* 1A2DC 8003EEDC 0C011740 */ jal func_80045D00
|
||||
/* 1A2E0 8003EEE0 2405003C */ addiu $a1, $zero, 0x3c
|
||||
.L8003EEE4:
|
||||
/* 1A2E4 8003EEE4 0C0117E9 */ jal func_80045FA4
|
||||
/* 1A2E8 8003EEE8 00000000 */ nop
|
||||
/* 1A2EC 8003EEEC 2C420001 */ sltiu $v0, $v0, 1
|
||||
/* 1A2F0 8003EEF0 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* 1A2F4 8003EEF4 00021040 */ sll $v0, $v0, 1
|
||||
/* 1A2F8 8003EEF8 03E00008 */ jr $ra
|
||||
/* 1A2FC 8003EEFC 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,33 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_8003F018
|
||||
/* 1A418 8003F018 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* 1A41C 8003F01C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1A420 8003F020 00A0802D */ daddu $s0, $a1, $zero
|
||||
/* 1A424 8003F024 2404FFF6 */ addiu $a0, $zero, -0xa
|
||||
/* 1A428 8003F028 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* 1A42C 8003F02C 0C00EABB */ jal get_npc_unsafe
|
||||
/* 1A430 8003F030 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1A434 8003F034 12000004 */ beqz $s0, .L8003F048
|
||||
/* 1A438 8003F038 0040882D */ daddu $s1, $v0, $zero
|
||||
/* 1A43C 8003F03C 0C05272D */ jal play_sound
|
||||
/* 1A440 8003F040 2404024B */ addiu $a0, $zero, 0x24b
|
||||
/* 1A444 8003F044 A22000AC */ sb $zero, 0xac($s1)
|
||||
.L8003F048:
|
||||
/* 1A448 8003F048 922200AC */ lbu $v0, 0xac($s1)
|
||||
/* 1A44C 8003F04C 24420011 */ addiu $v0, $v0, 0x11
|
||||
/* 1A450 8003F050 A22200AC */ sb $v0, 0xac($s1)
|
||||
/* 1A454 8003F054 304200FF */ andi $v0, $v0, 0xff
|
||||
/* 1A458 8003F058 2C4200FF */ sltiu $v0, $v0, 0xff
|
||||
/* 1A45C 8003F05C 14400004 */ bnez $v0, .L8003F070
|
||||
/* 1A460 8003F060 0000102D */ daddu $v0, $zero, $zero
|
||||
/* 1A464 8003F064 240200FF */ addiu $v0, $zero, 0xff
|
||||
/* 1A468 8003F068 A22200AC */ sb $v0, 0xac($s1)
|
||||
/* 1A46C 8003F06C 24020001 */ addiu $v0, $zero, 1
|
||||
.L8003F070:
|
||||
/* 1A470 8003F070 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* 1A474 8003F074 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1A478 8003F078 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1A47C 8003F07C 03E00008 */ jr $ra
|
||||
/* 1A480 8003F080 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,68 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel DropItemEntity
|
||||
/* FB770 802D6DC0 27BDFFC8 */ addiu $sp, $sp, -0x38
|
||||
/* FB774 802D6DC4 AFB1001C */ sw $s1, 0x1c($sp)
|
||||
/* FB778 802D6DC8 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FB77C 802D6DCC AFBF0030 */ sw $ra, 0x30($sp)
|
||||
/* FB780 802D6DD0 AFB5002C */ sw $s5, 0x2c($sp)
|
||||
/* FB784 802D6DD4 AFB40028 */ sw $s4, 0x28($sp)
|
||||
/* FB788 802D6DD8 AFB30024 */ sw $s3, 0x24($sp)
|
||||
/* FB78C 802D6DDC AFB20020 */ sw $s2, 0x20($sp)
|
||||
/* FB790 802D6DE0 AFB00018 */ sw $s0, 0x18($sp)
|
||||
/* FB794 802D6DE4 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FB798 802D6DE8 8E050000 */ lw $a1, ($s0)
|
||||
/* FB79C 802D6DEC 0C0B1EAF */ jal get_variable
|
||||
/* FB7A0 802D6DF0 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB7A4 802D6DF4 8E050000 */ lw $a1, ($s0)
|
||||
/* FB7A8 802D6DF8 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB7AC 802D6DFC 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB7B0 802D6E00 0C0B1EAF */ jal get_variable
|
||||
/* FB7B4 802D6E04 0040A82D */ daddu $s5, $v0, $zero
|
||||
/* FB7B8 802D6E08 8E050000 */ lw $a1, ($s0)
|
||||
/* FB7BC 802D6E0C 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB7C0 802D6E10 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB7C4 802D6E14 0C0B1EAF */ jal get_variable
|
||||
/* FB7C8 802D6E18 0040A02D */ daddu $s4, $v0, $zero
|
||||
/* FB7CC 802D6E1C 8E050000 */ lw $a1, ($s0)
|
||||
/* FB7D0 802D6E20 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB7D4 802D6E24 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB7D8 802D6E28 0C0B1EAF */ jal get_variable
|
||||
/* FB7DC 802D6E2C 0040982D */ daddu $s3, $v0, $zero
|
||||
/* FB7E0 802D6E30 8E050000 */ lw $a1, ($s0)
|
||||
/* FB7E4 802D6E34 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB7E8 802D6E38 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB7EC 802D6E3C 0C0B1EAF */ jal get_variable
|
||||
/* FB7F0 802D6E40 0040902D */ daddu $s2, $v0, $zero
|
||||
/* FB7F4 802D6E44 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB7F8 802D6E48 8E050000 */ lw $a1, ($s0)
|
||||
/* FB7FC 802D6E4C 0C0B1EAF */ jal get_variable
|
||||
/* FB800 802D6E50 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FB804 802D6E54 44940000 */ mtc1 $s4, $f0
|
||||
/* FB808 802D6E58 00000000 */ nop
|
||||
/* FB80C 802D6E5C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* FB810 802D6E60 44050000 */ mfc1 $a1, $f0
|
||||
/* FB814 802D6E64 44930000 */ mtc1 $s3, $f0
|
||||
/* FB818 802D6E68 00000000 */ nop
|
||||
/* FB81C 802D6E6C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* FB820 802D6E70 44060000 */ mfc1 $a2, $f0
|
||||
/* FB824 802D6E74 44920000 */ mtc1 $s2, $f0
|
||||
/* FB828 802D6E78 00000000 */ nop
|
||||
/* FB82C 802D6E7C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* FB830 802D6E80 44070000 */ mfc1 $a3, $f0
|
||||
/* FB834 802D6E84 02A0202D */ daddu $a0, $s5, $zero
|
||||
/* FB838 802D6E88 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FB83C 802D6E8C 0C04C6A5 */ jal make_item_entity_nodelay
|
||||
/* FB840 802D6E90 AFA20014 */ sw $v0, 0x14($sp)
|
||||
/* FB844 802D6E94 AE220084 */ sw $v0, 0x84($s1)
|
||||
/* FB848 802D6E98 8FBF0030 */ lw $ra, 0x30($sp)
|
||||
/* FB84C 802D6E9C 8FB5002C */ lw $s5, 0x2c($sp)
|
||||
/* FB850 802D6EA0 8FB40028 */ lw $s4, 0x28($sp)
|
||||
/* FB854 802D6EA4 8FB30024 */ lw $s3, 0x24($sp)
|
||||
/* FB858 802D6EA8 8FB20020 */ lw $s2, 0x20($sp)
|
||||
/* FB85C 802D6EAC 8FB1001C */ lw $s1, 0x1c($sp)
|
||||
/* FB860 802D6EB0 8FB00018 */ lw $s0, 0x18($sp)
|
||||
/* FB864 802D6EB4 24020002 */ addiu $v0, $zero, 2
|
||||
/* FB868 802D6EB8 03E00008 */ jr $ra
|
||||
/* FB86C 802D6EBC 27BD0038 */ addiu $sp, $sp, 0x38
|
@ -1,71 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel DropItemEntityB
|
||||
/* FB870 802D6EC0 27BDFFC8 */ addiu $sp, $sp, -0x38
|
||||
/* FB874 802D6EC4 AFB1001C */ sw $s1, 0x1c($sp)
|
||||
/* FB878 802D6EC8 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FB87C 802D6ECC AFBF0030 */ sw $ra, 0x30($sp)
|
||||
/* FB880 802D6ED0 AFB5002C */ sw $s5, 0x2c($sp)
|
||||
/* FB884 802D6ED4 AFB40028 */ sw $s4, 0x28($sp)
|
||||
/* FB888 802D6ED8 AFB30024 */ sw $s3, 0x24($sp)
|
||||
/* FB88C 802D6EDC AFB20020 */ sw $s2, 0x20($sp)
|
||||
/* FB890 802D6EE0 AFB00018 */ sw $s0, 0x18($sp)
|
||||
/* FB894 802D6EE4 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FB898 802D6EE8 8E050000 */ lw $a1, ($s0)
|
||||
/* FB89C 802D6EEC 0C0B1EAF */ jal get_variable
|
||||
/* FB8A0 802D6EF0 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB8A4 802D6EF4 8E050000 */ lw $a1, ($s0)
|
||||
/* FB8A8 802D6EF8 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB8AC 802D6EFC 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB8B0 802D6F00 0C0B1EAF */ jal get_variable
|
||||
/* FB8B4 802D6F04 0040A82D */ daddu $s5, $v0, $zero
|
||||
/* FB8B8 802D6F08 8E050000 */ lw $a1, ($s0)
|
||||
/* FB8BC 802D6F0C 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB8C0 802D6F10 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB8C4 802D6F14 0C0B1EAF */ jal get_variable
|
||||
/* FB8C8 802D6F18 0040A02D */ daddu $s4, $v0, $zero
|
||||
/* FB8CC 802D6F1C 8E050000 */ lw $a1, ($s0)
|
||||
/* FB8D0 802D6F20 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB8D4 802D6F24 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB8D8 802D6F28 0C0B1EAF */ jal get_variable
|
||||
/* FB8DC 802D6F2C 0040982D */ daddu $s3, $v0, $zero
|
||||
/* FB8E0 802D6F30 8E050000 */ lw $a1, ($s0)
|
||||
/* FB8E4 802D6F34 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB8E8 802D6F38 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB8EC 802D6F3C 0C0B1EAF */ jal get_variable
|
||||
/* FB8F0 802D6F40 0040902D */ daddu $s2, $v0, $zero
|
||||
/* FB8F4 802D6F44 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB8F8 802D6F48 8E050000 */ lw $a1, ($s0)
|
||||
/* FB8FC 802D6F4C 0C0B1F6A */ jal get_variable_index
|
||||
/* FB900 802D6F50 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FB904 802D6F54 44940000 */ mtc1 $s4, $f0
|
||||
/* FB908 802D6F58 00000000 */ nop
|
||||
/* FB90C 802D6F5C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* FB910 802D6F60 44050000 */ mfc1 $a1, $f0
|
||||
/* FB914 802D6F64 44930000 */ mtc1 $s3, $f0
|
||||
/* FB918 802D6F68 00000000 */ nop
|
||||
/* FB91C 802D6F6C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* FB920 802D6F70 44060000 */ mfc1 $a2, $f0
|
||||
/* FB924 802D6F74 44920000 */ mtc1 $s2, $f0
|
||||
/* FB928 802D6F78 00000000 */ nop
|
||||
/* FB92C 802D6F7C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* FB930 802D6F80 44070000 */ mfc1 $a3, $f0
|
||||
/* FB934 802D6F84 02A0202D */ daddu $a0, $s5, $zero
|
||||
/* FB938 802D6F88 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FB93C 802D6F8C 0C04C6A5 */ jal make_item_entity_nodelay
|
||||
/* FB940 802D6F90 AFA20014 */ sw $v0, 0x14($sp)
|
||||
/* FB944 802D6F94 0040202D */ daddu $a0, $v0, $zero
|
||||
/* FB948 802D6F98 24054000 */ addiu $a1, $zero, 0x4000
|
||||
/* FB94C 802D6F9C 0C04D052 */ jal set_item_entity_flags
|
||||
/* FB950 802D6FA0 AE240084 */ sw $a0, 0x84($s1)
|
||||
/* FB954 802D6FA4 8FBF0030 */ lw $ra, 0x30($sp)
|
||||
/* FB958 802D6FA8 8FB5002C */ lw $s5, 0x2c($sp)
|
||||
/* FB95C 802D6FAC 8FB40028 */ lw $s4, 0x28($sp)
|
||||
/* FB960 802D6FB0 8FB30024 */ lw $s3, 0x24($sp)
|
||||
/* FB964 802D6FB4 8FB20020 */ lw $s2, 0x20($sp)
|
||||
/* FB968 802D6FB8 8FB1001C */ lw $s1, 0x1c($sp)
|
||||
/* FB96C 802D6FBC 8FB00018 */ lw $s0, 0x18($sp)
|
||||
/* FB970 802D6FC0 24020002 */ addiu $v0, $zero, 2
|
||||
/* FB974 802D6FC4 03E00008 */ jr $ra
|
||||
/* FB978 802D6FC8 27BD0038 */ addiu $sp, $sp, 0x38
|
@ -1,63 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel FadeInMusic
|
||||
/* FA7A4 802D5DF4 27BDFFC8 */ addiu $sp, $sp, -0x38
|
||||
/* FA7A8 802D5DF8 AFB1001C */ sw $s1, 0x1c($sp)
|
||||
/* FA7AC 802D5DFC 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FA7B0 802D5E00 AFBF0030 */ sw $ra, 0x30($sp)
|
||||
/* FA7B4 802D5E04 AFB5002C */ sw $s5, 0x2c($sp)
|
||||
/* FA7B8 802D5E08 AFB40028 */ sw $s4, 0x28($sp)
|
||||
/* FA7BC 802D5E0C AFB30024 */ sw $s3, 0x24($sp)
|
||||
/* FA7C0 802D5E10 AFB20020 */ sw $s2, 0x20($sp)
|
||||
/* FA7C4 802D5E14 AFB00018 */ sw $s0, 0x18($sp)
|
||||
/* FA7C8 802D5E18 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FA7CC 802D5E1C 8E050000 */ lw $a1, ($s0)
|
||||
/* FA7D0 802D5E20 0C0B1EAF */ jal get_variable
|
||||
/* FA7D4 802D5E24 26100004 */ addiu $s0, $s0, 4
|
||||
/* FA7D8 802D5E28 8E050000 */ lw $a1, ($s0)
|
||||
/* FA7DC 802D5E2C 26100004 */ addiu $s0, $s0, 4
|
||||
/* FA7E0 802D5E30 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FA7E4 802D5E34 0C0B1EAF */ jal get_variable
|
||||
/* FA7E8 802D5E38 0040A82D */ daddu $s5, $v0, $zero
|
||||
/* FA7EC 802D5E3C 8E050000 */ lw $a1, ($s0)
|
||||
/* FA7F0 802D5E40 26100004 */ addiu $s0, $s0, 4
|
||||
/* FA7F4 802D5E44 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FA7F8 802D5E48 0C0B1EAF */ jal get_variable
|
||||
/* FA7FC 802D5E4C 0040982D */ daddu $s3, $v0, $zero
|
||||
/* FA800 802D5E50 8E050000 */ lw $a1, ($s0)
|
||||
/* FA804 802D5E54 26100004 */ addiu $s0, $s0, 4
|
||||
/* FA808 802D5E58 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FA80C 802D5E5C 0C0B1EAF */ jal get_variable
|
||||
/* FA810 802D5E60 0040A02D */ daddu $s4, $v0, $zero
|
||||
/* FA814 802D5E64 8E050000 */ lw $a1, ($s0)
|
||||
/* FA818 802D5E68 26100004 */ addiu $s0, $s0, 4
|
||||
/* FA81C 802D5E6C 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FA820 802D5E70 0C0B1EAF */ jal get_variable
|
||||
/* FA824 802D5E74 0040902D */ daddu $s2, $v0, $zero
|
||||
/* FA828 802D5E78 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FA82C 802D5E7C 8E050000 */ lw $a1, ($s0)
|
||||
/* FA830 802D5E80 0C0B1EAF */ jal get_variable
|
||||
/* FA834 802D5E84 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FA838 802D5E88 02A0202D */ daddu $a0, $s5, $zero
|
||||
/* FA83C 802D5E8C 0260282D */ daddu $a1, $s3, $zero
|
||||
/* FA840 802D5E90 00108400 */ sll $s0, $s0, 0x10
|
||||
/* FA844 802D5E94 00108403 */ sra $s0, $s0, 0x10
|
||||
/* FA848 802D5E98 00021400 */ sll $v0, $v0, 0x10
|
||||
/* FA84C 802D5E9C 00021403 */ sra $v0, $v0, 0x10
|
||||
/* FA850 802D5EA0 0280302D */ daddu $a2, $s4, $zero
|
||||
/* FA854 802D5EA4 0240382D */ daddu $a3, $s2, $zero
|
||||
/* FA858 802D5EA8 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FA85C 802D5EAC 0C052A59 */ jal func_8014A964
|
||||
/* FA860 802D5EB0 AFA20014 */ sw $v0, 0x14($sp)
|
||||
/* FA864 802D5EB4 0002102B */ sltu $v0, $zero, $v0
|
||||
/* FA868 802D5EB8 8FBF0030 */ lw $ra, 0x30($sp)
|
||||
/* FA86C 802D5EBC 8FB5002C */ lw $s5, 0x2c($sp)
|
||||
/* FA870 802D5EC0 8FB40028 */ lw $s4, 0x28($sp)
|
||||
/* FA874 802D5EC4 8FB30024 */ lw $s3, 0x24($sp)
|
||||
/* FA878 802D5EC8 8FB20020 */ lw $s2, 0x20($sp)
|
||||
/* FA87C 802D5ECC 8FB1001C */ lw $s1, 0x1c($sp)
|
||||
/* FA880 802D5ED0 8FB00018 */ lw $s0, 0x18($sp)
|
||||
/* FA884 802D5ED4 00021040 */ sll $v0, $v0, 1
|
||||
/* FA888 802D5ED8 03E00008 */ jr $ra
|
||||
/* FA88C 802D5EDC 27BD0038 */ addiu $sp, $sp, 0x38
|
@ -1,68 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel MakeItemEntity
|
||||
/* FB670 802D6CC0 27BDFFC8 */ addiu $sp, $sp, -0x38
|
||||
/* FB674 802D6CC4 AFB1001C */ sw $s1, 0x1c($sp)
|
||||
/* FB678 802D6CC8 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FB67C 802D6CCC AFBF0030 */ sw $ra, 0x30($sp)
|
||||
/* FB680 802D6CD0 AFB5002C */ sw $s5, 0x2c($sp)
|
||||
/* FB684 802D6CD4 AFB40028 */ sw $s4, 0x28($sp)
|
||||
/* FB688 802D6CD8 AFB30024 */ sw $s3, 0x24($sp)
|
||||
/* FB68C 802D6CDC AFB20020 */ sw $s2, 0x20($sp)
|
||||
/* FB690 802D6CE0 AFB00018 */ sw $s0, 0x18($sp)
|
||||
/* FB694 802D6CE4 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FB698 802D6CE8 8E050000 */ lw $a1, ($s0)
|
||||
/* FB69C 802D6CEC 0C0B1EAF */ jal get_variable
|
||||
/* FB6A0 802D6CF0 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB6A4 802D6CF4 8E050000 */ lw $a1, ($s0)
|
||||
/* FB6A8 802D6CF8 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB6AC 802D6CFC 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB6B0 802D6D00 0C0B1EAF */ jal get_variable
|
||||
/* FB6B4 802D6D04 0040A82D */ daddu $s5, $v0, $zero
|
||||
/* FB6B8 802D6D08 8E050000 */ lw $a1, ($s0)
|
||||
/* FB6BC 802D6D0C 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB6C0 802D6D10 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB6C4 802D6D14 0C0B1EAF */ jal get_variable
|
||||
/* FB6C8 802D6D18 0040A02D */ daddu $s4, $v0, $zero
|
||||
/* FB6CC 802D6D1C 8E050000 */ lw $a1, ($s0)
|
||||
/* FB6D0 802D6D20 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB6D4 802D6D24 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB6D8 802D6D28 0C0B1EAF */ jal get_variable
|
||||
/* FB6DC 802D6D2C 0040982D */ daddu $s3, $v0, $zero
|
||||
/* FB6E0 802D6D30 8E050000 */ lw $a1, ($s0)
|
||||
/* FB6E4 802D6D34 26100004 */ addiu $s0, $s0, 4
|
||||
/* FB6E8 802D6D38 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB6EC 802D6D3C 0C0B1EAF */ jal get_variable
|
||||
/* FB6F0 802D6D40 0040902D */ daddu $s2, $v0, $zero
|
||||
/* FB6F4 802D6D44 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FB6F8 802D6D48 8E050000 */ lw $a1, ($s0)
|
||||
/* FB6FC 802D6D4C 0C0B1F6A */ jal get_variable_index
|
||||
/* FB700 802D6D50 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FB704 802D6D54 44940000 */ mtc1 $s4, $f0
|
||||
/* FB708 802D6D58 00000000 */ nop
|
||||
/* FB70C 802D6D5C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* FB710 802D6D60 44050000 */ mfc1 $a1, $f0
|
||||
/* FB714 802D6D64 44930000 */ mtc1 $s3, $f0
|
||||
/* FB718 802D6D68 00000000 */ nop
|
||||
/* FB71C 802D6D6C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* FB720 802D6D70 44060000 */ mfc1 $a2, $f0
|
||||
/* FB724 802D6D74 44920000 */ mtc1 $s2, $f0
|
||||
/* FB728 802D6D78 00000000 */ nop
|
||||
/* FB72C 802D6D7C 46800020 */ cvt.s.w $f0, $f0
|
||||
/* FB730 802D6D80 44070000 */ mfc1 $a3, $f0
|
||||
/* FB734 802D6D84 02A0202D */ daddu $a0, $s5, $zero
|
||||
/* FB738 802D6D88 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FB73C 802D6D8C 0C04C6A5 */ jal make_item_entity_nodelay
|
||||
/* FB740 802D6D90 AFA20014 */ sw $v0, 0x14($sp)
|
||||
/* FB744 802D6D94 AE220084 */ sw $v0, 0x84($s1)
|
||||
/* FB748 802D6D98 8FBF0030 */ lw $ra, 0x30($sp)
|
||||
/* FB74C 802D6D9C 8FB5002C */ lw $s5, 0x2c($sp)
|
||||
/* FB750 802D6DA0 8FB40028 */ lw $s4, 0x28($sp)
|
||||
/* FB754 802D6DA4 8FB30024 */ lw $s3, 0x24($sp)
|
||||
/* FB758 802D6DA8 8FB20020 */ lw $s2, 0x20($sp)
|
||||
/* FB75C 802D6DAC 8FB1001C */ lw $s1, 0x1c($sp)
|
||||
/* FB760 802D6DB0 8FB00018 */ lw $s0, 0x18($sp)
|
||||
/* FB764 802D6DB4 24020002 */ addiu $v0, $zero, 2
|
||||
/* FB768 802D6DB8 03E00008 */ jr $ra
|
||||
/* FB76C 802D6DBC 27BD0038 */ addiu $sp, $sp, 0x38
|
@ -1,49 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel PlaySoundAtF
|
||||
/* FAD1C 802D636C 27BDFFC0 */ addiu $sp, $sp, -0x40
|
||||
/* FAD20 802D6370 AFB1001C */ sw $s1, 0x1c($sp)
|
||||
/* FAD24 802D6374 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FAD28 802D6378 AFBF0028 */ sw $ra, 0x28($sp)
|
||||
/* FAD2C 802D637C AFB30024 */ sw $s3, 0x24($sp)
|
||||
/* FAD30 802D6380 AFB20020 */ sw $s2, 0x20($sp)
|
||||
/* FAD34 802D6384 AFB00018 */ sw $s0, 0x18($sp)
|
||||
/* FAD38 802D6388 F7B60038 */ sdc1 $f22, 0x38($sp)
|
||||
/* FAD3C 802D638C F7B40030 */ sdc1 $f20, 0x30($sp)
|
||||
/* FAD40 802D6390 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FAD44 802D6394 8E130000 */ lw $s3, ($s0)
|
||||
/* FAD48 802D6398 26100004 */ addiu $s0, $s0, 4
|
||||
/* FAD4C 802D639C 8E050000 */ lw $a1, ($s0)
|
||||
/* FAD50 802D63A0 0C0B1EAF */ jal get_variable
|
||||
/* FAD54 802D63A4 26100004 */ addiu $s0, $s0, 4
|
||||
/* FAD58 802D63A8 8E050000 */ lw $a1, ($s0)
|
||||
/* FAD5C 802D63AC 26100004 */ addiu $s0, $s0, 4
|
||||
/* FAD60 802D63B0 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FAD64 802D63B4 0C0B210B */ jal get_float_variable
|
||||
/* FAD68 802D63B8 0040902D */ daddu $s2, $v0, $zero
|
||||
/* FAD6C 802D63BC 8E050000 */ lw $a1, ($s0)
|
||||
/* FAD70 802D63C0 26100004 */ addiu $s0, $s0, 4
|
||||
/* FAD74 802D63C4 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FAD78 802D63C8 0C0B210B */ jal get_float_variable
|
||||
/* FAD7C 802D63CC 46000586 */ mov.s $f22, $f0
|
||||
/* FAD80 802D63D0 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FAD84 802D63D4 8E050000 */ lw $a1, ($s0)
|
||||
/* FAD88 802D63D8 0C0B210B */ jal get_float_variable
|
||||
/* FAD8C 802D63DC 46000506 */ mov.s $f20, $f0
|
||||
/* FAD90 802D63E0 0260202D */ daddu $a0, $s3, $zero
|
||||
/* FAD94 802D63E4 4406B000 */ mfc1 $a2, $f22
|
||||
/* FAD98 802D63E8 4407A000 */ mfc1 $a3, $f20
|
||||
/* FAD9C 802D63EC 3245FFFF */ andi $a1, $s2, 0xffff
|
||||
/* FADA0 802D63F0 0C052757 */ jal play_sound_at_position
|
||||
/* FADA4 802D63F4 E7A00010 */ swc1 $f0, 0x10($sp)
|
||||
/* FADA8 802D63F8 8FBF0028 */ lw $ra, 0x28($sp)
|
||||
/* FADAC 802D63FC 8FB30024 */ lw $s3, 0x24($sp)
|
||||
/* FADB0 802D6400 8FB20020 */ lw $s2, 0x20($sp)
|
||||
/* FADB4 802D6404 8FB1001C */ lw $s1, 0x1c($sp)
|
||||
/* FADB8 802D6408 8FB00018 */ lw $s0, 0x18($sp)
|
||||
/* FADBC 802D640C D7B60038 */ ldc1 $f22, 0x38($sp)
|
||||
/* FADC0 802D6410 D7B40030 */ ldc1 $f20, 0x30($sp)
|
||||
/* FADC4 802D6414 24020002 */ addiu $v0, $zero, 2
|
||||
/* FADC8 802D6418 03E00008 */ jr $ra
|
||||
/* FADCC 802D641C 27BD0040 */ addiu $sp, $sp, 0x40
|
@ -1,40 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel RemoveBadge
|
||||
/* FBA00 802D7050 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* FBA04 802D7054 AFBF0014 */ sw $ra, 0x14($sp)
|
||||
/* FBA08 802D7058 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FBA0C 802D705C 8C82000C */ lw $v0, 0xc($a0)
|
||||
/* FBA10 802D7060 0C0B1EAF */ jal get_variable
|
||||
/* FBA14 802D7064 8C450000 */ lw $a1, ($v0)
|
||||
/* FBA18 802D7068 0040282D */ daddu $a1, $v0, $zero
|
||||
/* FBA1C 802D706C 0000202D */ daddu $a0, $zero, $zero
|
||||
/* FBA20 802D7070 3C108011 */ lui $s0, %hi(gPlayerData)
|
||||
/* FBA24 802D7074 2610F290 */ addiu $s0, $s0, %lo(gPlayerData)
|
||||
/* FBA28 802D7078 0200182D */ daddu $v1, $s0, $zero
|
||||
.L802D707C:
|
||||
/* FBA2C 802D707C 846200B4 */ lh $v0, 0xb4($v1)
|
||||
/* FBA30 802D7080 50450001 */ beql $v0, $a1, .L802D7088
|
||||
/* FBA34 802D7084 A46000B4 */ sh $zero, 0xb4($v1)
|
||||
.L802D7088:
|
||||
/* FBA38 802D7088 24840001 */ addiu $a0, $a0, 1
|
||||
/* FBA3C 802D708C 28820080 */ slti $v0, $a0, 0x80
|
||||
/* FBA40 802D7090 1440FFFA */ bnez $v0, .L802D707C
|
||||
/* FBA44 802D7094 24630002 */ addiu $v1, $v1, 2
|
||||
/* FBA48 802D7098 0000202D */ daddu $a0, $zero, $zero
|
||||
/* FBA4C 802D709C 0200182D */ daddu $v1, $s0, $zero
|
||||
.L802D70A0:
|
||||
/* FBA50 802D70A0 84620208 */ lh $v0, 0x208($v1)
|
||||
/* FBA54 802D70A4 50450001 */ beql $v0, $a1, .L802D70AC
|
||||
/* FBA58 802D70A8 A4600208 */ sh $zero, 0x208($v1)
|
||||
.L802D70AC:
|
||||
/* FBA5C 802D70AC 24840001 */ addiu $a0, $a0, 1
|
||||
/* FBA60 802D70B0 28820040 */ slti $v0, $a0, 0x40
|
||||
/* FBA64 802D70B4 1440FFFA */ bnez $v0, .L802D70A0
|
||||
/* FBA68 802D70B8 24630002 */ addiu $v1, $v1, 2
|
||||
/* FBA6C 802D70BC 8FBF0014 */ lw $ra, 0x14($sp)
|
||||
/* FBA70 802D70C0 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* FBA74 802D70C4 24020002 */ addiu $v0, $zero, 2
|
||||
/* FBA78 802D70C8 03E00008 */ jr $ra
|
||||
/* FBA7C 802D70CC 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,40 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel SetItemFlags
|
||||
/* FBB44 802D7194 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* FBB48 802D7198 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* FBB4C 802D719C 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FBB50 802D71A0 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* FBB54 802D71A4 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* FBB58 802D71A8 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FBB5C 802D71AC 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FBB60 802D71B0 8E050000 */ lw $a1, ($s0)
|
||||
/* FBB64 802D71B4 0C0B1EAF */ jal get_variable
|
||||
/* FBB68 802D71B8 26100004 */ addiu $s0, $s0, 4
|
||||
/* FBB6C 802D71BC 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FBB70 802D71C0 8E050004 */ lw $a1, 4($s0)
|
||||
/* FBB74 802D71C4 8E120000 */ lw $s2, ($s0)
|
||||
/* FBB78 802D71C8 0C0B1EAF */ jal get_variable
|
||||
/* FBB7C 802D71CC 0040882D */ daddu $s1, $v0, $zero
|
||||
/* FBB80 802D71D0 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FBB84 802D71D4 0C04C3D6 */ jal get_item_entity
|
||||
/* FBB88 802D71D8 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FBB8C 802D71DC 12000004 */ beqz $s0, .L802D71F0
|
||||
/* FBB90 802D71E0 0040202D */ daddu $a0, $v0, $zero
|
||||
/* FBB94 802D71E4 8C820000 */ lw $v0, ($a0)
|
||||
/* FBB98 802D71E8 080B5C7F */ j .L802D71FC
|
||||
/* FBB9C 802D71EC 00521025 */ or $v0, $v0, $s2
|
||||
.L802D71F0:
|
||||
/* FBBA0 802D71F0 8C820000 */ lw $v0, ($a0)
|
||||
/* FBBA4 802D71F4 00121827 */ nor $v1, $zero, $s2
|
||||
/* FBBA8 802D71F8 00431024 */ and $v0, $v0, $v1
|
||||
.L802D71FC:
|
||||
/* FBBAC 802D71FC AC820000 */ sw $v0, ($a0)
|
||||
/* FBBB0 802D7200 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* FBBB4 802D7204 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* FBBB8 802D7208 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* FBBBC 802D720C 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* FBBC0 802D7210 24020002 */ addiu $v0, $zero, 2
|
||||
/* FBBC4 802D7214 03E00008 */ jr $ra
|
||||
/* FBBC8 802D7218 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,56 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel ShowGotItem
|
||||
/* FBD54 802D73A4 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* FBD58 802D73A8 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* FBD5C 802D73AC 0080902D */ daddu $s2, $a0, $zero
|
||||
/* FBD60 802D73B0 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* FBD64 802D73B4 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* FBD68 802D73B8 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FBD6C 802D73BC 8E51000C */ lw $s1, 0xc($s2)
|
||||
/* FBD70 802D73C0 54A00001 */ bnel $a1, $zero, .L802D73C8
|
||||
/* FBD74 802D73C4 AE400070 */ sw $zero, 0x70($s2)
|
||||
.L802D73C8:
|
||||
/* FBD78 802D73C8 8E430070 */ lw $v1, 0x70($s2)
|
||||
/* FBD7C 802D73CC 10600005 */ beqz $v1, .L802D73E4
|
||||
/* FBD80 802D73D0 24020001 */ addiu $v0, $zero, 1
|
||||
/* FBD84 802D73D4 10620014 */ beq $v1, $v0, .L802D7428
|
||||
/* FBD88 802D73D8 00000000 */ nop
|
||||
/* FBD8C 802D73DC 080B5D11 */ j .L802D7444
|
||||
/* FBD90 802D73E0 0000102D */ daddu $v0, $zero, $zero
|
||||
.L802D73E4:
|
||||
/* FBD94 802D73E4 8E250000 */ lw $a1, ($s1)
|
||||
/* FBD98 802D73E8 26310004 */ addiu $s1, $s1, 4
|
||||
/* FBD9C 802D73EC 0C0B1EAF */ jal get_variable
|
||||
/* FBDA0 802D73F0 0240202D */ daddu $a0, $s2, $zero
|
||||
/* FBDA4 802D73F4 8E250000 */ lw $a1, ($s1)
|
||||
/* FBDA8 802D73F8 26310004 */ addiu $s1, $s1, 4
|
||||
/* FBDAC 802D73FC 0240202D */ daddu $a0, $s2, $zero
|
||||
/* FBDB0 802D7400 0C0B1EAF */ jal get_variable
|
||||
/* FBDB4 802D7404 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FBDB8 802D7408 0200202D */ daddu $a0, $s0, $zero
|
||||
/* FBDBC 802D740C 8E260000 */ lw $a2, ($s1)
|
||||
/* FBDC0 802D7410 0C04C6C0 */ jal init_got_item
|
||||
/* FBDC4 802D7414 0040282D */ daddu $a1, $v0, $zero
|
||||
/* FBDC8 802D7418 AE420074 */ sw $v0, 0x74($s2)
|
||||
/* FBDCC 802D741C 24020001 */ addiu $v0, $zero, 1
|
||||
/* FBDD0 802D7420 080B5D10 */ j .L802D7440
|
||||
/* FBDD4 802D7424 AE420070 */ sw $v0, 0x70($s2)
|
||||
.L802D7428:
|
||||
/* FBDD8 802D7428 8E440074 */ lw $a0, 0x74($s2)
|
||||
/* FBDDC 802D742C 0C04C3D6 */ jal get_item_entity
|
||||
/* FBDE0 802D7430 00000000 */ nop
|
||||
/* FBDE4 802D7434 0040182D */ daddu $v1, $v0, $zero
|
||||
/* FBDE8 802D7438 10600002 */ beqz $v1, .L802D7444
|
||||
/* FBDEC 802D743C 24020002 */ addiu $v0, $zero, 2
|
||||
.L802D7440:
|
||||
/* FBDF0 802D7440 0000102D */ daddu $v0, $zero, $zero
|
||||
.L802D7444:
|
||||
/* FBDF4 802D7444 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* FBDF8 802D7448 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* FBDFC 802D744C 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* FBE00 802D7450 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* FBE04 802D7454 03E00008 */ jr $ra
|
||||
/* FBE08 802D7458 27BD0020 */ addiu $sp, $sp, 0x20
|
||||
/* FBE0C 802D745C 00000000 */ nop
|
@ -1,35 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_802D5F28
|
||||
/* FA8D8 802D5F28 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* FA8DC 802D5F2C AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* FA8E0 802D5F30 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FA8E4 802D5F34 AFBF001C */ sw $ra, 0x1c($sp)
|
||||
/* FA8E8 802D5F38 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* FA8EC 802D5F3C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FA8F0 802D5F40 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FA8F4 802D5F44 8E050000 */ lw $a1, ($s0)
|
||||
/* FA8F8 802D5F48 0C0B1EAF */ jal get_variable
|
||||
/* FA8FC 802D5F4C 26100004 */ addiu $s0, $s0, 4
|
||||
/* FA900 802D5F50 8E050000 */ lw $a1, ($s0)
|
||||
/* FA904 802D5F54 26100004 */ addiu $s0, $s0, 4
|
||||
/* FA908 802D5F58 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FA90C 802D5F5C 0C0B1EAF */ jal get_variable
|
||||
/* FA910 802D5F60 0040902D */ daddu $s2, $v0, $zero
|
||||
/* FA914 802D5F64 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FA918 802D5F68 8E050000 */ lw $a1, ($s0)
|
||||
/* FA91C 802D5F6C 0C0B1EAF */ jal get_variable
|
||||
/* FA920 802D5F70 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FA924 802D5F74 0240202D */ daddu $a0, $s2, $zero
|
||||
/* FA928 802D5F78 0200282D */ daddu $a1, $s0, $zero
|
||||
/* FA92C 802D5F7C 00021400 */ sll $v0, $v0, 0x10
|
||||
/* FA930 802D5F80 0C052A95 */ jal func_8014AA54
|
||||
/* FA934 802D5F84 00023403 */ sra $a2, $v0, 0x10
|
||||
/* FA938 802D5F88 8FBF001C */ lw $ra, 0x1c($sp)
|
||||
/* FA93C 802D5F8C 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* FA940 802D5F90 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* FA944 802D5F94 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* FA948 802D5F98 24020002 */ addiu $v0, $zero, 2
|
||||
/* FA94C 802D5F9C 03E00008 */ jr $ra
|
||||
/* FA950 802D5FA0 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,17 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_802D5FA4
|
||||
/* FA954 802D5FA4 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* FA958 802D5FA8 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* FA95C 802D5FAC 8C82000C */ lw $v0, 0xc($a0)
|
||||
/* FA960 802D5FB0 0C0B1EAF */ jal get_variable
|
||||
/* FA964 802D5FB4 8C450000 */ lw $a1, ($v0)
|
||||
/* FA968 802D5FB8 0000202D */ daddu $a0, $zero, $zero
|
||||
/* FA96C 802D5FBC 00021400 */ sll $v0, $v0, 0x10
|
||||
/* FA970 802D5FC0 0C052AC3 */ jal func_8014AB0C
|
||||
/* FA974 802D5FC4 00022C03 */ sra $a1, $v0, 0x10
|
||||
/* FA978 802D5FC8 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* FA97C 802D5FCC 24020002 */ addiu $v0, $zero, 2
|
||||
/* FA980 802D5FD0 03E00008 */ jr $ra
|
||||
/* FA984 802D5FD4 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,12 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_802D5FD8
|
||||
/* FA988 802D5FD8 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* FA98C 802D5FDC AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* FA990 802D5FE0 0C052B69 */ jal func_8014ADA4
|
||||
/* FA994 802D5FE4 00000000 */ nop
|
||||
/* FA998 802D5FE8 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* FA99C 802D5FEC 24020002 */ addiu $v0, $zero, 2
|
||||
/* FA9A0 802D5FF0 03E00008 */ jr $ra
|
||||
/* FA9A4 802D5FF4 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,26 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_802D5FF8
|
||||
/* FA9A8 802D5FF8 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* FA9AC 802D5FFC AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* FA9B0 802D6000 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FA9B4 802D6004 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* FA9B8 802D6008 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FA9BC 802D600C 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FA9C0 802D6010 8E050000 */ lw $a1, ($s0)
|
||||
/* FA9C4 802D6014 0C0B1EAF */ jal get_variable
|
||||
/* FA9C8 802D6018 26100004 */ addiu $s0, $s0, 4
|
||||
/* FA9CC 802D601C 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FA9D0 802D6020 8E050000 */ lw $a1, ($s0)
|
||||
/* FA9D4 802D6024 0C0B1EAF */ jal get_variable
|
||||
/* FA9D8 802D6028 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FA9DC 802D602C 0200202D */ daddu $a0, $s0, $zero
|
||||
/* FA9E0 802D6030 0C052B7E */ jal func_8014ADF8
|
||||
/* FA9E4 802D6034 0040282D */ daddu $a1, $v0, $zero
|
||||
/* FA9E8 802D6038 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* FA9EC 802D603C 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* FA9F0 802D6040 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* FA9F4 802D6044 24020002 */ addiu $v0, $zero, 2
|
||||
/* FA9F8 802D6048 03E00008 */ jr $ra
|
||||
/* FA9FC 802D604C 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,12 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_802D6050
|
||||
/* FAA00 802D6050 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* FAA04 802D6054 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* FAA08 802D6058 0C052B9B */ jal func_8014AE6C
|
||||
/* FAA0C 802D605C 00000000 */ nop
|
||||
/* FAA10 802D6060 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* FAA14 802D6064 24020002 */ addiu $v0, $zero, 2
|
||||
/* FAA18 802D6068 03E00008 */ jr $ra
|
||||
/* FAA1C 802D606C 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,12 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_802D6070
|
||||
/* FAA20 802D6070 27BDFFE8 */ addiu $sp, $sp, -0x18
|
||||
/* FAA24 802D6074 AFBF0010 */ sw $ra, 0x10($sp)
|
||||
/* FAA28 802D6078 0C052BBE */ jal func_8014AEF8
|
||||
/* FAA2C 802D607C 00000000 */ nop
|
||||
/* FAA30 802D6080 8FBF0010 */ lw $ra, 0x10($sp)
|
||||
/* FAA34 802D6084 24020002 */ addiu $v0, $zero, 2
|
||||
/* FAA38 802D6088 03E00008 */ jr $ra
|
||||
/* FAA3C 802D608C 27BD0018 */ addiu $sp, $sp, 0x18
|
@ -1,26 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_802D6090
|
||||
/* FAA40 802D6090 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* FAA44 802D6094 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* FAA48 802D6098 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FAA4C 802D609C AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* FAA50 802D60A0 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FAA54 802D60A4 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FAA58 802D60A8 8E050000 */ lw $a1, ($s0)
|
||||
/* FAA5C 802D60AC 0C0B1EAF */ jal get_variable
|
||||
/* FAA60 802D60B0 26100004 */ addiu $s0, $s0, 4
|
||||
/* FAA64 802D60B4 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FAA68 802D60B8 8E050000 */ lw $a1, ($s0)
|
||||
/* FAA6C 802D60BC 0C0B1EAF */ jal get_variable
|
||||
/* FAA70 802D60C0 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FAA74 802D60C4 0200202D */ daddu $a0, $s0, $zero
|
||||
/* FAA78 802D60C8 0C052BE3 */ jal func_8014AF8C
|
||||
/* FAA7C 802D60CC 0040282D */ daddu $a1, $v0, $zero
|
||||
/* FAA80 802D60D0 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* FAA84 802D60D4 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* FAA88 802D60D8 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* FAA8C 802D60DC 24020002 */ addiu $v0, $zero, 2
|
||||
/* FAA90 802D60E0 03E00008 */ jr $ra
|
||||
/* FAA94 802D60E4 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,27 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_802D721C
|
||||
/* FBBCC 802D721C 27BDFFE0 */ addiu $sp, $sp, -0x20
|
||||
/* FBBD0 802D7220 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* FBBD4 802D7224 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FBBD8 802D7228 AFBF0018 */ sw $ra, 0x18($sp)
|
||||
/* FBBDC 802D722C AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* FBBE0 802D7230 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FBBE4 802D7234 8E050000 */ lw $a1, ($s0)
|
||||
/* FBBE8 802D7238 0C0B1EAF */ jal get_variable
|
||||
/* FBBEC 802D723C 26100004 */ addiu $s0, $s0, 4
|
||||
/* FBBF0 802D7240 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FBBF4 802D7244 8E050000 */ lw $a1, ($s0)
|
||||
/* FBBF8 802D7248 0C0B1EAF */ jal get_variable
|
||||
/* FBBFC 802D724C 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FBC00 802D7250 0200202D */ daddu $a0, $s0, $zero
|
||||
/* FBC04 802D7254 0C04C3D6 */ jal get_item_entity
|
||||
/* FBC08 802D7258 0040802D */ daddu $s0, $v0, $zero
|
||||
/* FBC0C 802D725C A050002F */ sb $s0, 0x2f($v0)
|
||||
/* FBC10 802D7260 8FBF0018 */ lw $ra, 0x18($sp)
|
||||
/* FBC14 802D7264 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* FBC18 802D7268 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* FBC1C 802D726C 24020002 */ addiu $v0, $zero, 2
|
||||
/* FBC20 802D7270 03E00008 */ jr $ra
|
||||
/* FBC24 802D7274 27BD0020 */ addiu $sp, $sp, 0x20
|
@ -1,50 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_802D7520
|
||||
/* FBED0 802D7520 27BDFFC0 */ addiu $sp, $sp, -0x40
|
||||
/* FBED4 802D7524 AFB1001C */ sw $s1, 0x1c($sp)
|
||||
/* FBED8 802D7528 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FBEDC 802D752C AFBF0020 */ sw $ra, 0x20($sp)
|
||||
/* FBEE0 802D7530 AFB00018 */ sw $s0, 0x18($sp)
|
||||
/* FBEE4 802D7534 F7B80038 */ sdc1 $f24, 0x38($sp)
|
||||
/* FBEE8 802D7538 F7B60030 */ sdc1 $f22, 0x30($sp)
|
||||
/* FBEEC 802D753C F7B40028 */ sdc1 $f20, 0x28($sp)
|
||||
/* FBEF0 802D7540 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FBEF4 802D7544 8E050000 */ lw $a1, ($s0)
|
||||
/* FBEF8 802D7548 0C0B210B */ jal get_float_variable
|
||||
/* FBEFC 802D754C 26100004 */ addiu $s0, $s0, 4
|
||||
/* FBF00 802D7550 8E050000 */ lw $a1, ($s0)
|
||||
/* FBF04 802D7554 26100004 */ addiu $s0, $s0, 4
|
||||
/* FBF08 802D7558 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FBF0C 802D755C 0C0B210B */ jal get_float_variable
|
||||
/* FBF10 802D7560 46000606 */ mov.s $f24, $f0
|
||||
/* FBF14 802D7564 8E050000 */ lw $a1, ($s0)
|
||||
/* FBF18 802D7568 26100004 */ addiu $s0, $s0, 4
|
||||
/* FBF1C 802D756C 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FBF20 802D7570 0C0B210B */ jal get_float_variable
|
||||
/* FBF24 802D7574 46000586 */ mov.s $f22, $f0
|
||||
/* FBF28 802D7578 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FBF2C 802D757C 8E050000 */ lw $a1, ($s0)
|
||||
/* FBF30 802D7580 0C0B1EAF */ jal get_variable
|
||||
/* FBF34 802D7584 46000506 */ mov.s $f20, $f0
|
||||
/* FBF38 802D7588 0040382D */ daddu $a3, $v0, $zero
|
||||
/* FBF3C 802D758C 4600C306 */ mov.s $f12, $f24
|
||||
/* FBF40 802D7590 4406A000 */ mfc1 $a2, $f20
|
||||
/* FBF44 802D7594 0C0B5D18 */ jal func_802D7460
|
||||
/* FBF48 802D7598 4600B386 */ mov.s $f14, $f22
|
||||
/* FBF4C 802D759C 24042055 */ addiu $a0, $zero, 0x2055
|
||||
/* FBF50 802D75A0 4406C000 */ mfc1 $a2, $f24
|
||||
/* FBF54 802D75A4 4407B000 */ mfc1 $a3, $f22
|
||||
/* FBF58 802D75A8 0000282D */ daddu $a1, $zero, $zero
|
||||
/* FBF5C 802D75AC 0C052757 */ jal play_sound_at_position
|
||||
/* FBF60 802D75B0 E7B40010 */ swc1 $f20, 0x10($sp)
|
||||
/* FBF64 802D75B4 8FBF0020 */ lw $ra, 0x20($sp)
|
||||
/* FBF68 802D75B8 8FB1001C */ lw $s1, 0x1c($sp)
|
||||
/* FBF6C 802D75BC 8FB00018 */ lw $s0, 0x18($sp)
|
||||
/* FBF70 802D75C0 D7B80038 */ ldc1 $f24, 0x38($sp)
|
||||
/* FBF74 802D75C4 D7B60030 */ ldc1 $f22, 0x30($sp)
|
||||
/* FBF78 802D75C8 D7B40028 */ ldc1 $f20, 0x28($sp)
|
||||
/* FBF7C 802D75CC 24020002 */ addiu $v0, $zero, 2
|
||||
/* FBF80 802D75D0 03E00008 */ jr $ra
|
||||
/* FBF84 802D75D4 27BD0040 */ addiu $sp, $sp, 0x40
|
@ -1,50 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_802D75D8
|
||||
/* FBF88 802D75D8 27BDFFC0 */ addiu $sp, $sp, -0x40
|
||||
/* FBF8C 802D75DC AFB1001C */ sw $s1, 0x1c($sp)
|
||||
/* FBF90 802D75E0 0080882D */ daddu $s1, $a0, $zero
|
||||
/* FBF94 802D75E4 AFBF0020 */ sw $ra, 0x20($sp)
|
||||
/* FBF98 802D75E8 AFB00018 */ sw $s0, 0x18($sp)
|
||||
/* FBF9C 802D75EC F7B80038 */ sdc1 $f24, 0x38($sp)
|
||||
/* FBFA0 802D75F0 F7B60030 */ sdc1 $f22, 0x30($sp)
|
||||
/* FBFA4 802D75F4 F7B40028 */ sdc1 $f20, 0x28($sp)
|
||||
/* FBFA8 802D75F8 8E30000C */ lw $s0, 0xc($s1)
|
||||
/* FBFAC 802D75FC 8E050000 */ lw $a1, ($s0)
|
||||
/* FBFB0 802D7600 0C0B210B */ jal get_float_variable
|
||||
/* FBFB4 802D7604 26100004 */ addiu $s0, $s0, 4
|
||||
/* FBFB8 802D7608 8E050000 */ lw $a1, ($s0)
|
||||
/* FBFBC 802D760C 26100004 */ addiu $s0, $s0, 4
|
||||
/* FBFC0 802D7610 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FBFC4 802D7614 0C0B210B */ jal get_float_variable
|
||||
/* FBFC8 802D7618 46000606 */ mov.s $f24, $f0
|
||||
/* FBFCC 802D761C 8E050000 */ lw $a1, ($s0)
|
||||
/* FBFD0 802D7620 26100004 */ addiu $s0, $s0, 4
|
||||
/* FBFD4 802D7624 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FBFD8 802D7628 0C0B210B */ jal get_float_variable
|
||||
/* FBFDC 802D762C 46000586 */ mov.s $f22, $f0
|
||||
/* FBFE0 802D7630 0220202D */ daddu $a0, $s1, $zero
|
||||
/* FBFE4 802D7634 8E050000 */ lw $a1, ($s0)
|
||||
/* FBFE8 802D7638 0C0B1EAF */ jal get_variable
|
||||
/* FBFEC 802D763C 46000506 */ mov.s $f20, $f0
|
||||
/* FBFF0 802D7640 0040382D */ daddu $a3, $v0, $zero
|
||||
/* FBFF4 802D7644 4600C306 */ mov.s $f12, $f24
|
||||
/* FBFF8 802D7648 4406A000 */ mfc1 $a2, $f20
|
||||
/* FBFFC 802D764C 0C0B5D30 */ jal func_802D74C0
|
||||
/* FC000 802D7650 4600B386 */ mov.s $f14, $f22
|
||||
/* FC004 802D7654 24040378 */ addiu $a0, $zero, 0x378
|
||||
/* FC008 802D7658 4406C000 */ mfc1 $a2, $f24
|
||||
/* FC00C 802D765C 4407B000 */ mfc1 $a3, $f22
|
||||
/* FC010 802D7660 0000282D */ daddu $a1, $zero, $zero
|
||||
/* FC014 802D7664 0C052757 */ jal play_sound_at_position
|
||||
/* FC018 802D7668 E7B40010 */ swc1 $f20, 0x10($sp)
|
||||
/* FC01C 802D766C 8FBF0020 */ lw $ra, 0x20($sp)
|
||||
/* FC020 802D7670 8FB1001C */ lw $s1, 0x1c($sp)
|
||||
/* FC024 802D7674 8FB00018 */ lw $s0, 0x18($sp)
|
||||
/* FC028 802D7678 D7B80038 */ ldc1 $f24, 0x38($sp)
|
||||
/* FC02C 802D767C D7B60030 */ ldc1 $f22, 0x30($sp)
|
||||
/* FC030 802D7680 D7B40028 */ ldc1 $f20, 0x28($sp)
|
||||
/* FC034 802D7684 24020002 */ addiu $v0, $zero, 2
|
||||
/* FC038 802D7688 03E00008 */ jr $ra
|
||||
/* FC03C 802D768C 27BD0040 */ addiu $sp, $sp, 0x40
|
@ -112,7 +112,9 @@ typedef struct Npc {
|
||||
/* 0x0A6 */ s16 collisionRadius;
|
||||
/* 0x0A8 */ s16 collisionHeight;
|
||||
/* 0x0AA */ u8 renderMode;
|
||||
/* 0x0AB */ char unk_AB[661];
|
||||
/* 0x0AB */ char unk_AB;
|
||||
/* 0x0AC */ u8 unk_AC;
|
||||
/* 0x0AD */ char unk_AD[659];
|
||||
} Npc; // size = 0x340
|
||||
|
||||
typedef Npc* NpcList[MAX_NPCS];
|
||||
@ -779,7 +781,7 @@ typedef struct ItemEntity {
|
||||
/* 0x28 */ u32* savedReadPos;
|
||||
/* 0x2C */ char unk_2C[2];
|
||||
/* 0x2E */ u8 unkCounter;
|
||||
/* 0x2F */ char unk_2F;
|
||||
/* 0x2F */ s8 unk_2F;
|
||||
/* 0x30 */ f32 scale;
|
||||
/* 0x34 */ char unk_34[40];
|
||||
} ItemEntity; // size = 0x5C
|
||||
@ -1234,7 +1236,7 @@ typedef struct Actor {
|
||||
/* 0x19C */ s32 actorTypeData1[6]; /* 4 = jump sound */
|
||||
/* 0x1B4 */ s16 actorTypeData1b[2];
|
||||
/* 0x1B8 */ u8 currentHP;
|
||||
/* 0x1B9 */ u8 maxHP;
|
||||
/* 0x1B9 */ s8 maxHP;
|
||||
/* 0x1BA */ char unk_1BA[2];
|
||||
/* 0x1BC */ u8 hpFraction; /* used to render HP bar */
|
||||
/* 0x1BD */ char unk_1BD[3];
|
||||
@ -1250,7 +1252,7 @@ typedef struct Actor {
|
||||
/* 0x1E4 */ ScriptID takeTurnID;
|
||||
/* 0x1E8 */ ScriptID onHitID;
|
||||
/* 0x1EC */ ScriptID onTurnChangeID;
|
||||
/* 0x1F0 */ u8 lastEventType;
|
||||
/* 0x1F0 */ s8 lastEventType;
|
||||
/* 0x1F1 */ u8 turnPriority;
|
||||
/* 0x1F2 */ u8 enemyIndex; /* actorID = this | 200 */
|
||||
/* 0x1F3 */ u8 numParts;
|
||||
@ -1260,7 +1262,8 @@ typedef struct Actor {
|
||||
/* 0x1FC */ s16 damageCounter;
|
||||
/* 0x1FE */ char unk_1FE[9];
|
||||
/* 0x207 */ u8 extraCoinBonus;
|
||||
/* 0x208 */ char unk_208[4];
|
||||
/* 0x208 */ s8 unk_208;
|
||||
/* 0x209 */ char unk_209[3];
|
||||
/* 0x20C */ u32* statusTable;
|
||||
/* 0x210 */ u8 debuff;
|
||||
/* 0x211 */ s8 debuffDuration;
|
||||
|
@ -92,6 +92,9 @@ f32 update_lerp(Easing easing, f32 start, f32 end, s32 elapsed, s32 duration);
|
||||
|
||||
void make_item_entity_delayed(s32 itemID, f32 x, f32 y, f32 z, s32 unk1, s32 unk2, s32 unk3);
|
||||
void set_item_entity_position(s32 itemEntityIndex, f32 x, f32 y, f32 z);
|
||||
ItemEntity* get_item_entity(s32 itemEntityIndex);
|
||||
s32 make_item_entity_nodelay(s32 itemID, f32 x, f32 y, f32 z, ItemSpawnMode itemSpawnMode, s32 pickupVar);
|
||||
|
||||
|
||||
void set_cam_viewport(s16 id, s16 x, s16 y, s16 width, s16 height);
|
||||
|
||||
|
@ -18,19 +18,77 @@ INCLUDE_ASM(s32, "code_1A5830", dispatch_damage_event_actor_0);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", dispatch_damage_event_actor_1);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", BindTakeTurn);
|
||||
ApiStatus BindTakeTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 var1;
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", PauseTakeTurn);
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", ResumeTakeTurn);
|
||||
var1 = get_variable(script, *args++);
|
||||
get_actor(actorID)->takeTurnCode = var1;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus PauseTakeTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
get_variable(script, *args++);
|
||||
suspend_all_script(get_actor(actorID)->takeTurnID);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus ResumeTakeTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
get_variable(script, *args++);
|
||||
resume_all_script(get_actor(actorID)->takeTurnID);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", BindIdle);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", EnableIdleScript);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", BindHandleEvent);
|
||||
ApiStatus BindHandleEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 var1;
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", BindNextTurn);
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
var1 = get_variable(script, *args++);
|
||||
get_actor(actorID)->onHitCode = var1;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus BindNextTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 var1;
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
var1 = get_variable(script, *args++);
|
||||
get_actor(actorID)->onTurnChangeCode = var1;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", JumpToGoal);
|
||||
|
||||
@ -64,25 +122,104 @@ INCLUDE_ASM(s32, "code_1A5830", IdleFlyToGoal);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", FlyPartTo);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", GetLastEvent);
|
||||
ApiStatus GetLastEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 outVar;
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", SetTargetActor);
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
outVar = *args++;
|
||||
set_variable(script, outVar, get_actor(actorID)->lastEventType);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetTargetActor(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 targetActorID;
|
||||
Actor* actor;
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
targetActorID = get_variable(script, *args++);
|
||||
actor = get_actor(actorID);
|
||||
actor->targetActorID = targetActorID;
|
||||
actor->targetPartIndex = 1;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", SetEnemyHP);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", GetActorHP);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", GetEnemyMaxHP);
|
||||
ApiStatus GetEnemyMaxHP(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 outVar;
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
outVar = *args++;
|
||||
set_variable(script, outVar, get_actor(actorID)->maxHP);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", RemoveActor);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", DropStarPoints);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", SetDefenseTable);
|
||||
ApiStatus SetDefenseTable(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 var1;
|
||||
s32 var2;
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", SetStatusTable);
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", SetIdleAnimations);
|
||||
var1 = get_variable(script, *args++);
|
||||
var2 = get_variable(script, *args++);
|
||||
get_actor_part(get_actor(actorID), var1)->defenseTable = var2;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetStatusTable(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 var1;
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
var1 = get_variable(script, *args++);
|
||||
get_actor(actorID)->statusTable = var1;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetIdleAnimations(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 var1;
|
||||
s32 var2;
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
var1 = get_variable(script, *args++);
|
||||
var2 = get_variable(script, *args++);
|
||||
get_actor_part(get_actor(actorID), var1)->idleAnimations = var2;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", func_8027CC10);
|
||||
|
||||
@ -94,11 +231,39 @@ INCLUDE_ASM(s32, "code_1A5830", EnemyTestTarget);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", DispatchDamageEvent);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", DispatchEvent);
|
||||
ApiStatus DispatchEvent(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", func_8027D2D8);
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", func_8027D32C);
|
||||
dispatch_event_actor(get_actor(actorID), get_variable(script, *args++));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8027D2D8(ScriptInstance* script, s32 isInitialCall) {
|
||||
ActorId actorID = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
func_80266ADC(get_actor(actorID));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8027D32C(ScriptInstance* script, s32 isInitialCall) {
|
||||
ActorId actorID = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
func_80266AF8(get_actor(actorID));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", SetTargetOffset);
|
||||
|
||||
@ -106,29 +271,124 @@ INCLUDE_ASM(s32, "code_1A5830", func_8027D434);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", func_8027D4C8);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", EnableActorBlur);
|
||||
ApiStatus EnableActorBlur(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 enable = get_variable(script, *args++);
|
||||
Actor* actor;
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", func_8027D628);
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
actor = get_actor(actorID);
|
||||
|
||||
if (enable == 0) {
|
||||
disable_actor_blur(actor);
|
||||
} else if (enable == 1) {
|
||||
enable_actor_blur(actor);
|
||||
} else {
|
||||
reset_actor_blur(actor);
|
||||
}
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_8027D628(ScriptInstance* script, s32 isInitialCall) {
|
||||
ActorId actorID = get_variable(script, *script->ptrReadPos);
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
func_80254610(get_actor(actorID));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", AfflictActor);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", func_8027D75C);
|
||||
ApiStatus func_8027D75C(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 outVar = *args++;
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", GetEncounterState);
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", YieldTurn);
|
||||
set_variable(script, outVar, get_actor(actorID)->unk_208);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetEncounterState(ScriptInstance* script, s32 isInitialCall) {
|
||||
set_variable(script, *script->ptrReadPos, gCurrentEncounter.hitType);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus YieldTurn(ScriptInstance* script, s32 isInitialCall) {
|
||||
gBattleStatus.flags1 |= 0x200000;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", SetActorSize);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", GetActorSize);
|
||||
ApiStatus GetActorSize(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 outY = *args++;
|
||||
s32 outX = *args++;
|
||||
Actor* actor;
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
actor = get_actor(actorID);
|
||||
set_variable(script, outY, actor->size.y);
|
||||
set_variable(script, outX, actor->size.x);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", SetPartSize);
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", GetOriginalActorType);
|
||||
ApiStatus GetOriginalActorType(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 outVar = *args++;
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", GetCurrentActorType);
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", GetLastDamage);
|
||||
set_variable(script, outVar, get_actor(actorID)->staticActorData->type);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetCurrentActorType(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 outVar = *args++;
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
|
||||
set_variable(script, outVar, get_actor(actorID)->actorType);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus GetLastDamage(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
ActorId actorID = get_variable(script, *args++);
|
||||
s32 outVar;
|
||||
|
||||
if (actorID == ActorId_SELF) {
|
||||
actorID = script->owner1.actorID;
|
||||
}
|
||||
outVar = *args++;
|
||||
|
||||
set_variable(script, outVar, get_actor(actorID)->lastDamageTaken);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1A5830", EnableActorGlow);
|
||||
|
||||
|
@ -27,9 +27,19 @@ void set_defeated(s32 mapID, s32 encounterID) {
|
||||
currentEncounter->defeatFlags[mapID][encounterIdx] |= (1 << encounterShift);*/
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1a1f0_len_5390", func_8003EE98);
|
||||
ApiStatus func_8003EE98(ScriptInstance* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
func_80045D00(0, 60);
|
||||
}
|
||||
return (func_80045FA4() == 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1a1f0_len_5390", func_8003EECC);
|
||||
ApiStatus func_8003EECC(ScriptInstance* script, s32 isInitialCall) {
|
||||
if (isInitialCall) {
|
||||
func_80045D00(1, 60);
|
||||
}
|
||||
return (func_80045FA4() == 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1a1f0_len_5390", FadeBackgroundToBlack);
|
||||
|
||||
@ -49,7 +59,22 @@ ApiStatus UnfadeBackgroundFromBlack(ScriptInstance* script, s32 isInitialCall) {
|
||||
}
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1a1f0_len_5390", func_8003F018);
|
||||
ApiStatus func_8003F018(ScriptInstance* script, s32 isInitialCall) {
|
||||
Npc* npc = get_npc_unsafe(-0xA);
|
||||
|
||||
if (isInitialCall) {
|
||||
play_sound(0x24B);
|
||||
npc->unk_AC = 0;
|
||||
}
|
||||
|
||||
npc->unk_AC += 17;
|
||||
|
||||
if ((u32)(npc->unk_AC & 0xFF) >= 0xFF) {
|
||||
npc->unk_AC = 0xFF;
|
||||
return ApiStatus_DONE1;
|
||||
}
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_1a1f0_len_5390", func_8003F084);
|
||||
|
||||
|
78
src/code_FBE10.c
Normal file
78
src/code_FBE10.c
Normal file
@ -0,0 +1,78 @@
|
||||
#include "common.h"
|
||||
|
||||
void func_802D7460(f32 x, f32 y, f32 z, s32 arg3);
|
||||
INCLUDE_ASM(void, "code_fa4c0_len_3bf0", func_802D7460, f32 x, f32 y, f32 z, s32 arg3);
|
||||
|
||||
void func_802D74C0(f32 x, f32 y, f32 z, s32 arg3);
|
||||
INCLUDE_ASM(void, "code_fa4c0_len_3bf0", func_802D74C0, f32 x, f32 y, f32 z, s32 arg3);
|
||||
|
||||
ApiStatus func_802D7520(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
f32 x = get_float_variable(script, *args++);
|
||||
f32 y = get_float_variable(script, *args++);
|
||||
f32 z = get_float_variable(script, *args++);
|
||||
|
||||
func_802D7460(x, y, z, get_variable(script, *args++));
|
||||
play_sound_at_position(0x2055, 0, x, y, z);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802D75D8(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
f32 x = get_float_variable(script, *args++);
|
||||
f32 y = get_float_variable(script, *args++);
|
||||
f32 z = get_float_variable(script, *args++);
|
||||
|
||||
func_802D74C0(x, y, z, get_variable(script, *args++));
|
||||
play_sound_at_position(0x378, 0, x, y, z);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_FBE10", func_802D7690);
|
||||
|
||||
INCLUDE_ASM(s32, "code_FBE10", ShowEmote, ScriptInstance* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus RemoveEffect(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
remove_effect(get_variable(script, *args++));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802D7B10(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32* ptrValue = get_variable(script, *args++);
|
||||
|
||||
*ptrValue |= 0x10;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802D7B44(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32* ptrValue = get_variable(script, *args++);
|
||||
s32* ptrTemp = ptrValue[3];
|
||||
|
||||
ptrTemp[5] = 10;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802D7B74(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32* ptrValue = get_variable(script, *args++);
|
||||
s32* ptrTemp = ptrValue[3];
|
||||
|
||||
ptrTemp[12] = 5;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_FBE10", func_802D7BA4);
|
||||
|
||||
INCLUDE_ASM(s32, "code_FBE10", func_802D7CF8);
|
||||
|
||||
INCLUDE_ASM(s32, "code_FBE10", func_802D7E08);
|
||||
|
||||
INCLUDE_ASM(s32, "code_FBE10", ShowSleepBubble);
|
||||
|
||||
INCLUDE_ASM(s32, "code_FBE10", func_802D8248);
|
||||
|
||||
INCLUDE_ASM(s32, "code_FBE10", PlayEffect);
|
@ -187,7 +187,7 @@ INCLUDE_ASM(s32, "code_b72b0_len_15ed0", func_80130ACC);
|
||||
|
||||
INCLUDE_ASM(s32, "code_b72b0_len_15ed0", draw_coin_sparkles);
|
||||
|
||||
INCLUDE_ASM(s32, "code_b72b0_len_15ed0", get_item_entity);
|
||||
INCLUDE_ASM(ItemEntity*, "code_b72b0_len_15ed0", get_item_entity, s32 itemEntityIndex);
|
||||
|
||||
INCLUDE_ASM(s32, "code_b72b0_len_15ed0", func_80130F70);
|
||||
|
||||
@ -201,7 +201,8 @@ INCLUDE_ASM(s32, "code_b72b0_len_15ed0", func_80131128);
|
||||
|
||||
INCLUDE_ASM(s32, "code_b72b0_len_15ed0", make_item_entity);
|
||||
|
||||
INCLUDE_ASM(s32, "code_b72b0_len_15ed0", make_item_entity_nodelay);
|
||||
INCLUDE_ASM(s32, "code_b72b0_len_15ed0", make_item_entity_nodelay, s32 itemID, f32 x, f32 y, f32 z,
|
||||
ItemSpawnMode itemSpawnMode, s32 pickupVar);
|
||||
|
||||
INCLUDE_ASM(void, "code_b72b0_len_15ed0", make_item_entity_delayed, s32 itemID, f32 x, f32 y, f32 z, s32 unk1,
|
||||
s32 unk2,
|
||||
|
@ -9,7 +9,7 @@ ApiStatus FadeOutMusic(ScriptInstance* script, s32 isInitialCall) {
|
||||
s32 itemID = get_variable(script, *args++);
|
||||
s32* ptrNextPos = args++;
|
||||
|
||||
return (set_music_track(itemID, -1, 0, get_variable(script, *ptrNextPos++), 8) != 0) * 2;
|
||||
return (set_music_track(itemID, -1, 0, get_variable(script, *ptrNextPos++), 8) != 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetMusicTrack(ScriptInstance* script, s32 isInitialCall) {
|
||||
@ -19,40 +19,76 @@ ApiStatus SetMusicTrack(ScriptInstance* script, s32 isInitialCall) {
|
||||
s32 variation = get_variable(script, *args++);
|
||||
s16 volume = get_variable(script, *args++);
|
||||
|
||||
return (set_music_track(musicPlayer, songID, variation, 0x1F4, volume) != 0) * 2;
|
||||
return (set_music_track(musicPlayer, songID, variation, 0x1F4, volume) != 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", FadeInMusic, ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus FadeInMusic(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 var0 = get_variable(script, *args++);
|
||||
s32 var1 = get_variable(script, *args++);
|
||||
s32 var2 = get_variable(script, *args++);
|
||||
s32 var3 = get_variable(script, *args++);
|
||||
s16 var4 = get_variable(script, *args++);
|
||||
s16 var5 = get_variable(script, *args++);
|
||||
|
||||
return (func_8014A964(var0, var1, var2, var3, var4, var5) != 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D5EE0);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D5F28);
|
||||
ApiStatus func_802D5F28(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D5FA4);
|
||||
func_8014AA54(get_variable(script, *args++), get_variable(script, *args++), (s16)get_variable(script, *args++));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D5FD8);
|
||||
ApiStatus func_802D5FA4(ScriptInstance* script, s32 isInitialCall) {
|
||||
func_8014AB0C(0, (s16)get_variable(script, *script->ptrReadPos));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D5FF8);
|
||||
ApiStatus func_802D5FD8(ScriptInstance* script, s32 isInitialCall) {
|
||||
func_8014ADA4();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D6050);
|
||||
ApiStatus func_802D5FF8(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D6070);
|
||||
func_8014ADF8(get_variable(script, *args++), get_variable(script, *args++));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D6090);
|
||||
ApiStatus func_802D6050(ScriptInstance* script, s32 isInitialCall) {
|
||||
func_8014AE6C();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802D6070(ScriptInstance* script, s32 isInitialCall) {
|
||||
func_8014AEF8();
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802D6090(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
func_8014AF8C(get_variable(script, *args++), get_variable(script, *args++));
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
//INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", ClearAmbientSounds);
|
||||
ApiStatus ClearAmbientSounds(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 flags = get_variable(script, *args++);
|
||||
|
||||
return (play_ambient_sounds(-1, flags) != 0) * 2;
|
||||
return (play_ambient_sounds(-1, flags) != 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus PlayAmbientSounds(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 soundID = get_variable(script, *args++);
|
||||
|
||||
return (play_ambient_sounds(soundID, 0xFA) != 0) * 2;
|
||||
return (play_ambient_sounds(soundID, 0xFA) != 0) * ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus PlaySound(ScriptInstance* script, s32 isInitialCall) {
|
||||
@ -112,7 +148,17 @@ ApiStatus func_802D6340(ScriptInstance* script, s32 initialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", PlaySoundAtF, ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus PlaySoundAtF(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
Bytecode soundID = *args++;
|
||||
u16 value2 = get_variable(script, *args++);
|
||||
f32 x = get_float_variable(script, *args++);
|
||||
f32 y = get_float_variable(script, *args++);
|
||||
f32 z = get_float_variable(script, *args++);
|
||||
|
||||
play_sound_at_position(soundID, value2, x, y, z);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D6420);
|
||||
|
||||
@ -289,13 +335,32 @@ ApiStatus RemoveFortressKeys(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", MakeItemEntity, ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus MakeItemEntity(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemID = get_variable(script, *args++);
|
||||
s32 x = get_variable(script, *args++);
|
||||
s32 y = get_variable(script, *args++);
|
||||
s32 z = get_variable(script, *args++);
|
||||
s32 itemSpawnMode = get_variable(script, *args++);
|
||||
s32 pickupVar = get_variable_index(script, *args++);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", DropItemEntity, ScriptInstance* script, s32 isInitialCall);
|
||||
script->varTable[0] = make_item_entity_nodelay(itemID, x, y, z, itemSpawnMode, pickupVar);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus DropItemEntity(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemID = get_variable(script, *args++);
|
||||
s32 x = get_variable(script, *args++);
|
||||
s32 y = get_variable(script, *args++);
|
||||
s32 z = get_variable(script, *args++);
|
||||
s32 itemSpawnMode = get_variable(script, *args++);
|
||||
s32 pickupVar = get_variable(script, *args++);
|
||||
|
||||
script->varTable[0] = make_item_entity_nodelay(itemID, x, y, z, itemSpawnMode, pickupVar);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", DropItemEntityB, ScriptInstance* script, s32 isInitialCall);
|
||||
/*
|
||||
// Close to working
|
||||
ApiStatus DropItemEntityB(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemID = get_variable(script, *args++);
|
||||
@ -303,13 +368,12 @@ ApiStatus DropItemEntityB(ScriptInstance* script, s32 isInitialCall) {
|
||||
s32 y = get_variable(script, *args++);
|
||||
s32 z = get_variable(script, *args++);
|
||||
s32 itemSpawnMode = get_variable(script, *args++);
|
||||
s32 pickupFlag = get_variable(script, *args++);
|
||||
s32 pickupVar = get_variable_index(script, *args++);
|
||||
|
||||
script->varTable[0] = make_item_entity_nodelay(itemID, x, y, z);
|
||||
set_item_entity_flags(script, 0x4000);
|
||||
script->varTable[0] = make_item_entity_nodelay(itemID, x, y, z, itemSpawnMode, pickupVar);
|
||||
set_item_entity_flags(script->varTable[0], 0x4000);
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
*/
|
||||
|
||||
ApiStatus RemoveItemEntity(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -328,7 +392,25 @@ ApiStatus AddBadge(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", RemoveBadge, ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus RemoveBadge(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
PlayerData* playerData = PLAYER_DATA;
|
||||
s32 badge = get_variable(script, *args++);
|
||||
s32 i;
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(playerData->badges); i++) {
|
||||
if (playerData->badges[i] == badge) {
|
||||
playerData->badges[i] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(playerData->equippedBadges); i++) {
|
||||
if (playerData->equippedBadges[i] == badge) {
|
||||
playerData->equippedBadges[i] = 0;
|
||||
}
|
||||
}
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus SetItemPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
@ -348,9 +430,30 @@ ApiStatus SetItemPos(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", SetItemFlags, ScriptInstance* script, s32 isInitialCall);
|
||||
ApiStatus SetItemFlags(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemEntityIndex = get_variable(script, *args++);
|
||||
s32 flagBits = *args++;
|
||||
s32 var2 = get_variable(script, *args++);
|
||||
ItemEntity* itemEntity = get_item_entity(itemEntityIndex);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D721C);
|
||||
if (var2 != 0) {
|
||||
itemEntity->flags |= flagBits;
|
||||
} else {
|
||||
itemEntity->flags &= ~flagBits;
|
||||
}
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
;
|
||||
ApiStatus func_802D721C(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 itemEntityIndex = get_variable(script, *args++);
|
||||
s32 var2 = get_variable(script, *args++);
|
||||
ItemEntity* itemEntity = get_item_entity(itemEntityIndex);
|
||||
|
||||
itemEntity->unk_2F = var2;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus AddCoin(ScriptInstance* script, s32 isInitialCall) {
|
||||
script->varTable[0] = add_coins(get_variable(script, *script->ptrReadPos));
|
||||
@ -378,61 +481,22 @@ ApiStatus GetItemPower(ScriptInstance* script, s32 isInitialCall) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", ShowGotItem, ScriptInstance* script, s32 isInitialCall);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D7460);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D74C0);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D7520);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D75D8);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D7690);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", ShowEmote, ScriptInstance* script, s32 isInitialCall);
|
||||
|
||||
ApiStatus RemoveEffect(ScriptInstance* script, s32 isInitialCall) {
|
||||
ApiStatus ShowGotItem(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
|
||||
remove_effect(get_variable(script, *args++));
|
||||
return ApiStatus_DONE2;
|
||||
if (isInitialCall) {
|
||||
script->functionTemp[0].s = 0;
|
||||
}
|
||||
|
||||
switch (script->functionTemp[0].s) {
|
||||
case 0:
|
||||
script->functionTemp[1].s = init_got_item(get_variable(script, *args++), get_variable(script, *args++), *args++);
|
||||
script->functionTemp[0].s = 1;
|
||||
break;
|
||||
case 1:
|
||||
if (get_item_entity(script->functionTemp[1].s) == NULL) {
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
}
|
||||
return ApiStatus_BLOCK;
|
||||
}
|
||||
|
||||
ApiStatus func_802D7B10(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32* ptrValue = get_variable(script, *args++);
|
||||
|
||||
*ptrValue |= 0x10;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802D7B44(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32* ptrValue = get_variable(script, *args++);
|
||||
s32* ptrTemp = ptrValue[3];
|
||||
|
||||
ptrTemp[5] = 10;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus func_802D7B74(ScriptInstance* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32* ptrValue = get_variable(script, *args++);
|
||||
s32* ptrTemp = ptrValue[3];
|
||||
|
||||
ptrTemp[12] = 5;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D7BA4);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D7CF8);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D7E08);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", ShowSleepBubble);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", func_802D8248);
|
||||
|
||||
INCLUDE_ASM(s32, "code_fa4c0_len_3bf0", PlayEffect);
|
||||
|
@ -247,6 +247,7 @@ segments:
|
||||
- [0xf5750, "c", "code_F5750"]
|
||||
- [0xf8f60, "c", "code_f8f60_len_1560"]
|
||||
- [0xfa4c0, "c", "code_fa4c0_len_3bf0"]
|
||||
- [0xFBE10, "c"]
|
||||
- [0xfe0b0, "c", "code_fe0b0_len_5a0"]
|
||||
- [0xFE650, ".data", "code_e79b0_len_1920"]
|
||||
- [0xFE660, "bin"]
|
||||
|
Loading…
Reference in New Issue
Block a user