mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 00:42:34 +01:00
Some 1A5830 funcs
This commit is contained in:
parent
eb41485a0a
commit
2d215e6943
@ -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
|
@ -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];
|
||||
@ -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;
|
||||
|
@ -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 var1 = 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 (var1 == 0) {
|
||||
disable_actor_blur(actor);
|
||||
} else if (var1 == 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) * 2;
|
||||
}
|
||||
|
||||
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) * 2;
|
||||
}
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user