From 1f82a0c857a8ec772fc2d90c90c08def7215e805 Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Sun, 22 Nov 2020 11:06:57 -0500 Subject: [PATCH] SetPartnerFlags20000 --- .../pra_01/D4D060/func_80240EEC_D4DF2C.s | 18 ------------------ .../pra_01/D4D060/func_80240F60_D4DFA0.s | 12 ------------ .../pra_05/D55BD0/func_80240EEC_D56A9C.s | 18 ------------------ .../pra_06/D57430/func_80240F1C_D5834C.s | 18 ------------------ .../pra_10/D5F2D0/func_80240EEC_D6019C.s | 18 ------------------ .../pra_11/D61520/func_80240EEC_D623EC.s | 18 ------------------ .../pra_12/D62D10/func_80240F1C_D63C2C.s | 18 ------------------ .../pra_14/D67D20/func_80240EEC_D68BEC.s | 18 ------------------ .../pra_16/D69B40/func_80240EEC_D6AA0C.s | 18 ------------------ .../pra_18/D6B640/func_80240EEC_D6C50C.s | 18 ------------------ .../pra_20/D763C0/func_80240EEC_D7728C.s | 18 ------------------ .../pra_27/D799F0/func_80240F1C_D7A90C.s | 18 ------------------ .../pra_28/D7B2A0/func_80240F1C_D7C1BC.s | 18 ------------------ .../pra_29/D7CB70/func_80240EEC_D7DA3C.s | 18 ------------------ .../pra_33/D89700/func_80240EEC_D8A5CC.s | 18 ------------------ .../pra_35/D8D270/func_80240EEC_D8E13C.s | 18 ------------------ .../pra_36/D91700/func_80240F1C_D9261C.s | 18 ------------------ .../pra_38/D955F0/func_80240F1C_D9650C.s | 18 ------------------ .../pra_39/D97890/func_80240F1C_D987AC.s | 18 ------------------ .../pra_40/D999D0/func_80240EEC_D9A89C.s | 18 ------------------ src/world/area_pra/pra_01/D4D060.c | 7 +++++-- src/world/area_pra/pra_05/D55BD0.c | 2 +- src/world/area_pra/pra_06/D57430.c | 2 +- src/world/area_pra/pra_10/D5F2D0.c | 2 +- src/world/area_pra/pra_11/D61520.c | 2 +- src/world/area_pra/pra_12/D62D10.c | 2 +- src/world/area_pra/pra_14/D67D20.c | 2 +- src/world/area_pra/pra_16/D69B40.c | 2 +- src/world/area_pra/pra_18/D6B640.c | 2 +- src/world/area_pra/pra_20/D763C0.c | 2 +- src/world/area_pra/pra_27/D799F0.c | 2 +- src/world/area_pra/pra_28/D7B2A0.c | 2 +- src/world/area_pra/pra_29/D7CB70.c | 2 +- src/world/area_pra/pra_33/D89700.c | 2 +- src/world/area_pra/pra_35/D8D270.c | 2 +- src/world/area_pra/pra_36/D91700.c | 2 +- src/world/area_pra/pra_38/D955F0.c | 2 +- src/world/area_pra/pra_39/D97890.c | 2 +- src/world/area_pra/pra_40/D999D0.c | 2 +- src/world/common/SetPartnerFlags20000.inc.c | 9 +++++++++ 40 files changed, 32 insertions(+), 374 deletions(-) delete mode 100644 asm/nonmatchings/world/area_pra/pra_01/D4D060/func_80240EEC_D4DF2C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_01/D4D060/func_80240F60_D4DFA0.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_05/D55BD0/func_80240EEC_D56A9C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_06/D57430/func_80240F1C_D5834C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_10/D5F2D0/func_80240EEC_D6019C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_11/D61520/func_80240EEC_D623EC.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_12/D62D10/func_80240F1C_D63C2C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_14/D67D20/func_80240EEC_D68BEC.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_16/D69B40/func_80240EEC_D6AA0C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_18/D6B640/func_80240EEC_D6C50C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_20/D763C0/func_80240EEC_D7728C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_27/D799F0/func_80240F1C_D7A90C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_28/D7B2A0/func_80240F1C_D7C1BC.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_29/D7CB70/func_80240EEC_D7DA3C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_33/D89700/func_80240EEC_D8A5CC.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_35/D8D270/func_80240EEC_D8E13C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_36/D91700/func_80240F1C_D9261C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_38/D955F0/func_80240F1C_D9650C.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_39/D97890/func_80240F1C_D987AC.s delete mode 100644 asm/nonmatchings/world/area_pra/pra_40/D999D0/func_80240EEC_D9A89C.s create mode 100644 src/world/common/SetPartnerFlags20000.inc.c diff --git a/asm/nonmatchings/world/area_pra/pra_01/D4D060/func_80240EEC_D4DF2C.s b/asm/nonmatchings/world/area_pra/pra_01/D4D060/func_80240EEC_D4DF2C.s deleted file mode 100644 index 9f0b8b9186..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_01/D4D060/func_80240EEC_D4DF2C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D4DF2C -/* D4DF2C 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D4DF30 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D4DF34 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D4DF38 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D4DF3C 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D4DF40 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D4DF44 80240F04 3C030002 */ lui $v1, 2 -/* D4DF48 80240F08 8C820000 */ lw $v0, ($a0) -/* D4DF4C 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D4DF50 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D4DF54 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D4DF58 80240F18 03E00008 */ jr $ra -/* D4DF5C 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_01/D4D060/func_80240F60_D4DFA0.s b/asm/nonmatchings/world/area_pra/pra_01/D4D060/func_80240F60_D4DFA0.s deleted file mode 100644 index 5fed9861e1..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_01/D4D060/func_80240F60_D4DFA0.s +++ /dev/null @@ -1,12 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240F60_D4DFA0 -/* D4DFA0 80240F60 3C02800A */ lui $v0, %hi(D_8009A650) -/* D4DFA4 80240F64 2442A650 */ addiu $v0, $v0, %lo(D_8009A650) -/* D4DFA8 80240F68 8C430000 */ lw $v1, ($v0) -/* D4DFAC 80240F6C 2404FF7F */ addiu $a0, $zero, -0x81 -/* D4DFB0 80240F70 00641824 */ and $v1, $v1, $a0 -/* D4DFB4 80240F74 AC430000 */ sw $v1, ($v0) -/* D4DFB8 80240F78 03E00008 */ jr $ra -/* D4DFBC 80240F7C 24020002 */ addiu $v0, $zero, 2 diff --git a/asm/nonmatchings/world/area_pra/pra_05/D55BD0/func_80240EEC_D56A9C.s b/asm/nonmatchings/world/area_pra/pra_05/D55BD0/func_80240EEC_D56A9C.s deleted file mode 100644 index 85a5c63b6c..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_05/D55BD0/func_80240EEC_D56A9C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D56A9C -/* D56A9C 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D56AA0 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D56AA4 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D56AA8 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D56AAC 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D56AB0 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D56AB4 80240F04 3C030002 */ lui $v1, 2 -/* D56AB8 80240F08 8C820000 */ lw $v0, ($a0) -/* D56ABC 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D56AC0 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D56AC4 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D56AC8 80240F18 03E00008 */ jr $ra -/* D56ACC 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_06/D57430/func_80240F1C_D5834C.s b/asm/nonmatchings/world/area_pra/pra_06/D57430/func_80240F1C_D5834C.s deleted file mode 100644 index 5ed59478d0..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_06/D57430/func_80240F1C_D5834C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240F1C_D5834C -/* D5834C 80240F1C 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D58350 80240F20 AFBF0010 */ sw $ra, 0x10($sp) -/* D58354 80240F24 0C00EAD2 */ jal get_npc_safe -/* D58358 80240F28 2404FFFC */ addiu $a0, $zero, -4 -/* D5835C 80240F2C 0040202D */ daddu $a0, $v0, $zero -/* D58360 80240F30 10800004 */ beqz $a0, .L80240F44 -/* D58364 80240F34 3C030002 */ lui $v1, 2 -/* D58368 80240F38 8C820000 */ lw $v0, ($a0) -/* D5836C 80240F3C 00431025 */ or $v0, $v0, $v1 -/* D58370 80240F40 AC820000 */ sw $v0, ($a0) -.L80240F44: -/* D58374 80240F44 8FBF0010 */ lw $ra, 0x10($sp) -/* D58378 80240F48 03E00008 */ jr $ra -/* D5837C 80240F4C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_10/D5F2D0/func_80240EEC_D6019C.s b/asm/nonmatchings/world/area_pra/pra_10/D5F2D0/func_80240EEC_D6019C.s deleted file mode 100644 index a85393256a..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_10/D5F2D0/func_80240EEC_D6019C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D6019C -/* D6019C 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D601A0 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D601A4 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D601A8 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D601AC 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D601B0 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D601B4 80240F04 3C030002 */ lui $v1, 2 -/* D601B8 80240F08 8C820000 */ lw $v0, ($a0) -/* D601BC 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D601C0 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D601C4 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D601C8 80240F18 03E00008 */ jr $ra -/* D601CC 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_11/D61520/func_80240EEC_D623EC.s b/asm/nonmatchings/world/area_pra/pra_11/D61520/func_80240EEC_D623EC.s deleted file mode 100644 index 1ca7cb6a0d..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_11/D61520/func_80240EEC_D623EC.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D623EC -/* D623EC 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D623F0 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D623F4 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D623F8 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D623FC 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D62400 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D62404 80240F04 3C030002 */ lui $v1, 2 -/* D62408 80240F08 8C820000 */ lw $v0, ($a0) -/* D6240C 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D62410 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D62414 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D62418 80240F18 03E00008 */ jr $ra -/* D6241C 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_12/D62D10/func_80240F1C_D63C2C.s b/asm/nonmatchings/world/area_pra/pra_12/D62D10/func_80240F1C_D63C2C.s deleted file mode 100644 index c841e08ca3..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_12/D62D10/func_80240F1C_D63C2C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240F1C_D63C2C -/* D63C2C 80240F1C 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D63C30 80240F20 AFBF0010 */ sw $ra, 0x10($sp) -/* D63C34 80240F24 0C00EAD2 */ jal get_npc_safe -/* D63C38 80240F28 2404FFFC */ addiu $a0, $zero, -4 -/* D63C3C 80240F2C 0040202D */ daddu $a0, $v0, $zero -/* D63C40 80240F30 10800004 */ beqz $a0, .L80240F44 -/* D63C44 80240F34 3C030002 */ lui $v1, 2 -/* D63C48 80240F38 8C820000 */ lw $v0, ($a0) -/* D63C4C 80240F3C 00431025 */ or $v0, $v0, $v1 -/* D63C50 80240F40 AC820000 */ sw $v0, ($a0) -.L80240F44: -/* D63C54 80240F44 8FBF0010 */ lw $ra, 0x10($sp) -/* D63C58 80240F48 03E00008 */ jr $ra -/* D63C5C 80240F4C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_14/D67D20/func_80240EEC_D68BEC.s b/asm/nonmatchings/world/area_pra/pra_14/D67D20/func_80240EEC_D68BEC.s deleted file mode 100644 index 0622fcbaac..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_14/D67D20/func_80240EEC_D68BEC.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D68BEC -/* D68BEC 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D68BF0 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D68BF4 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D68BF8 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D68BFC 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D68C00 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D68C04 80240F04 3C030002 */ lui $v1, 2 -/* D68C08 80240F08 8C820000 */ lw $v0, ($a0) -/* D68C0C 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D68C10 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D68C14 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D68C18 80240F18 03E00008 */ jr $ra -/* D68C1C 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_16/D69B40/func_80240EEC_D6AA0C.s b/asm/nonmatchings/world/area_pra/pra_16/D69B40/func_80240EEC_D6AA0C.s deleted file mode 100644 index dbe89d4e89..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_16/D69B40/func_80240EEC_D6AA0C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D6AA0C -/* D6AA0C 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D6AA10 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D6AA14 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D6AA18 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D6AA1C 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D6AA20 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D6AA24 80240F04 3C030002 */ lui $v1, 2 -/* D6AA28 80240F08 8C820000 */ lw $v0, ($a0) -/* D6AA2C 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D6AA30 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D6AA34 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D6AA38 80240F18 03E00008 */ jr $ra -/* D6AA3C 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_18/D6B640/func_80240EEC_D6C50C.s b/asm/nonmatchings/world/area_pra/pra_18/D6B640/func_80240EEC_D6C50C.s deleted file mode 100644 index 44ac3c1c06..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_18/D6B640/func_80240EEC_D6C50C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D6C50C -/* D6C50C 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D6C510 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D6C514 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D6C518 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D6C51C 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D6C520 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D6C524 80240F04 3C030002 */ lui $v1, 2 -/* D6C528 80240F08 8C820000 */ lw $v0, ($a0) -/* D6C52C 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D6C530 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D6C534 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D6C538 80240F18 03E00008 */ jr $ra -/* D6C53C 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_20/D763C0/func_80240EEC_D7728C.s b/asm/nonmatchings/world/area_pra/pra_20/D763C0/func_80240EEC_D7728C.s deleted file mode 100644 index b4ab4a302b..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_20/D763C0/func_80240EEC_D7728C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D7728C -/* D7728C 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D77290 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D77294 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D77298 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D7729C 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D772A0 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D772A4 80240F04 3C030002 */ lui $v1, 2 -/* D772A8 80240F08 8C820000 */ lw $v0, ($a0) -/* D772AC 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D772B0 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D772B4 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D772B8 80240F18 03E00008 */ jr $ra -/* D772BC 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_27/D799F0/func_80240F1C_D7A90C.s b/asm/nonmatchings/world/area_pra/pra_27/D799F0/func_80240F1C_D7A90C.s deleted file mode 100644 index 4775e3e0fb..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_27/D799F0/func_80240F1C_D7A90C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240F1C_D7A90C -/* D7A90C 80240F1C 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D7A910 80240F20 AFBF0010 */ sw $ra, 0x10($sp) -/* D7A914 80240F24 0C00EAD2 */ jal get_npc_safe -/* D7A918 80240F28 2404FFFC */ addiu $a0, $zero, -4 -/* D7A91C 80240F2C 0040202D */ daddu $a0, $v0, $zero -/* D7A920 80240F30 10800004 */ beqz $a0, .L80240F44 -/* D7A924 80240F34 3C030002 */ lui $v1, 2 -/* D7A928 80240F38 8C820000 */ lw $v0, ($a0) -/* D7A92C 80240F3C 00431025 */ or $v0, $v0, $v1 -/* D7A930 80240F40 AC820000 */ sw $v0, ($a0) -.L80240F44: -/* D7A934 80240F44 8FBF0010 */ lw $ra, 0x10($sp) -/* D7A938 80240F48 03E00008 */ jr $ra -/* D7A93C 80240F4C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_28/D7B2A0/func_80240F1C_D7C1BC.s b/asm/nonmatchings/world/area_pra/pra_28/D7B2A0/func_80240F1C_D7C1BC.s deleted file mode 100644 index 72a264f5c6..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_28/D7B2A0/func_80240F1C_D7C1BC.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240F1C_D7C1BC -/* D7C1BC 80240F1C 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D7C1C0 80240F20 AFBF0010 */ sw $ra, 0x10($sp) -/* D7C1C4 80240F24 0C00EAD2 */ jal get_npc_safe -/* D7C1C8 80240F28 2404FFFC */ addiu $a0, $zero, -4 -/* D7C1CC 80240F2C 0040202D */ daddu $a0, $v0, $zero -/* D7C1D0 80240F30 10800004 */ beqz $a0, .L80240F44 -/* D7C1D4 80240F34 3C030002 */ lui $v1, 2 -/* D7C1D8 80240F38 8C820000 */ lw $v0, ($a0) -/* D7C1DC 80240F3C 00431025 */ or $v0, $v0, $v1 -/* D7C1E0 80240F40 AC820000 */ sw $v0, ($a0) -.L80240F44: -/* D7C1E4 80240F44 8FBF0010 */ lw $ra, 0x10($sp) -/* D7C1E8 80240F48 03E00008 */ jr $ra -/* D7C1EC 80240F4C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_29/D7CB70/func_80240EEC_D7DA3C.s b/asm/nonmatchings/world/area_pra/pra_29/D7CB70/func_80240EEC_D7DA3C.s deleted file mode 100644 index 5fcc6c0966..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_29/D7CB70/func_80240EEC_D7DA3C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D7DA3C -/* D7DA3C 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D7DA40 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D7DA44 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D7DA48 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D7DA4C 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D7DA50 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D7DA54 80240F04 3C030002 */ lui $v1, 2 -/* D7DA58 80240F08 8C820000 */ lw $v0, ($a0) -/* D7DA5C 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D7DA60 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D7DA64 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D7DA68 80240F18 03E00008 */ jr $ra -/* D7DA6C 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_33/D89700/func_80240EEC_D8A5CC.s b/asm/nonmatchings/world/area_pra/pra_33/D89700/func_80240EEC_D8A5CC.s deleted file mode 100644 index 6763b73f3e..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_33/D89700/func_80240EEC_D8A5CC.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D8A5CC -/* D8A5CC 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D8A5D0 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D8A5D4 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D8A5D8 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D8A5DC 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D8A5E0 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D8A5E4 80240F04 3C030002 */ lui $v1, 2 -/* D8A5E8 80240F08 8C820000 */ lw $v0, ($a0) -/* D8A5EC 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D8A5F0 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D8A5F4 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D8A5F8 80240F18 03E00008 */ jr $ra -/* D8A5FC 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_35/D8D270/func_80240EEC_D8E13C.s b/asm/nonmatchings/world/area_pra/pra_35/D8D270/func_80240EEC_D8E13C.s deleted file mode 100644 index c6da5354e7..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_35/D8D270/func_80240EEC_D8E13C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D8E13C -/* D8E13C 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D8E140 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D8E144 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D8E148 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D8E14C 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D8E150 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D8E154 80240F04 3C030002 */ lui $v1, 2 -/* D8E158 80240F08 8C820000 */ lw $v0, ($a0) -/* D8E15C 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D8E160 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D8E164 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D8E168 80240F18 03E00008 */ jr $ra -/* D8E16C 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_36/D91700/func_80240F1C_D9261C.s b/asm/nonmatchings/world/area_pra/pra_36/D91700/func_80240F1C_D9261C.s deleted file mode 100644 index da883f24f1..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_36/D91700/func_80240F1C_D9261C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240F1C_D9261C -/* D9261C 80240F1C 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D92620 80240F20 AFBF0010 */ sw $ra, 0x10($sp) -/* D92624 80240F24 0C00EAD2 */ jal get_npc_safe -/* D92628 80240F28 2404FFFC */ addiu $a0, $zero, -4 -/* D9262C 80240F2C 0040202D */ daddu $a0, $v0, $zero -/* D92630 80240F30 10800004 */ beqz $a0, .L80240F44 -/* D92634 80240F34 3C030002 */ lui $v1, 2 -/* D92638 80240F38 8C820000 */ lw $v0, ($a0) -/* D9263C 80240F3C 00431025 */ or $v0, $v0, $v1 -/* D92640 80240F40 AC820000 */ sw $v0, ($a0) -.L80240F44: -/* D92644 80240F44 8FBF0010 */ lw $ra, 0x10($sp) -/* D92648 80240F48 03E00008 */ jr $ra -/* D9264C 80240F4C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_38/D955F0/func_80240F1C_D9650C.s b/asm/nonmatchings/world/area_pra/pra_38/D955F0/func_80240F1C_D9650C.s deleted file mode 100644 index 3135ed1e2e..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_38/D955F0/func_80240F1C_D9650C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240F1C_D9650C -/* D9650C 80240F1C 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D96510 80240F20 AFBF0010 */ sw $ra, 0x10($sp) -/* D96514 80240F24 0C00EAD2 */ jal get_npc_safe -/* D96518 80240F28 2404FFFC */ addiu $a0, $zero, -4 -/* D9651C 80240F2C 0040202D */ daddu $a0, $v0, $zero -/* D96520 80240F30 10800004 */ beqz $a0, .L80240F44 -/* D96524 80240F34 3C030002 */ lui $v1, 2 -/* D96528 80240F38 8C820000 */ lw $v0, ($a0) -/* D9652C 80240F3C 00431025 */ or $v0, $v0, $v1 -/* D96530 80240F40 AC820000 */ sw $v0, ($a0) -.L80240F44: -/* D96534 80240F44 8FBF0010 */ lw $ra, 0x10($sp) -/* D96538 80240F48 03E00008 */ jr $ra -/* D9653C 80240F4C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_39/D97890/func_80240F1C_D987AC.s b/asm/nonmatchings/world/area_pra/pra_39/D97890/func_80240F1C_D987AC.s deleted file mode 100644 index c285860b83..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_39/D97890/func_80240F1C_D987AC.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240F1C_D987AC -/* D987AC 80240F1C 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D987B0 80240F20 AFBF0010 */ sw $ra, 0x10($sp) -/* D987B4 80240F24 0C00EAD2 */ jal get_npc_safe -/* D987B8 80240F28 2404FFFC */ addiu $a0, $zero, -4 -/* D987BC 80240F2C 0040202D */ daddu $a0, $v0, $zero -/* D987C0 80240F30 10800004 */ beqz $a0, .L80240F44 -/* D987C4 80240F34 3C030002 */ lui $v1, 2 -/* D987C8 80240F38 8C820000 */ lw $v0, ($a0) -/* D987CC 80240F3C 00431025 */ or $v0, $v0, $v1 -/* D987D0 80240F40 AC820000 */ sw $v0, ($a0) -.L80240F44: -/* D987D4 80240F44 8FBF0010 */ lw $ra, 0x10($sp) -/* D987D8 80240F48 03E00008 */ jr $ra -/* D987DC 80240F4C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/asm/nonmatchings/world/area_pra/pra_40/D999D0/func_80240EEC_D9A89C.s b/asm/nonmatchings/world/area_pra/pra_40/D999D0/func_80240EEC_D9A89C.s deleted file mode 100644 index f5d4965a22..0000000000 --- a/asm/nonmatchings/world/area_pra/pra_40/D999D0/func_80240EEC_D9A89C.s +++ /dev/null @@ -1,18 +0,0 @@ -.set noat # allow manual use of $at -.set noreorder # don't insert nops after branches - -glabel func_80240EEC_D9A89C -/* D9A89C 80240EEC 27BDFFE8 */ addiu $sp, $sp, -0x18 -/* D9A8A0 80240EF0 AFBF0010 */ sw $ra, 0x10($sp) -/* D9A8A4 80240EF4 0C00EAD2 */ jal get_npc_safe -/* D9A8A8 80240EF8 2404FFFC */ addiu $a0, $zero, -4 -/* D9A8AC 80240EFC 0040202D */ daddu $a0, $v0, $zero -/* D9A8B0 80240F00 10800004 */ beqz $a0, .L80240F14 -/* D9A8B4 80240F04 3C030002 */ lui $v1, 2 -/* D9A8B8 80240F08 8C820000 */ lw $v0, ($a0) -/* D9A8BC 80240F0C 00431025 */ or $v0, $v0, $v1 -/* D9A8C0 80240F10 AC820000 */ sw $v0, ($a0) -.L80240F14: -/* D9A8C4 80240F14 8FBF0010 */ lw $ra, 0x10($sp) -/* D9A8C8 80240F18 03E00008 */ jr $ra -/* D9A8CC 80240F1C 27BD0018 */ addiu $sp, $sp, 0x18 diff --git a/src/world/area_pra/pra_01/D4D060.c b/src/world/area_pra/pra_01/D4D060.c index 4c4a52c140..1347268caf 100644 --- a/src/world/area_pra/pra_01/D4D060.c +++ b/src/world/area_pra/pra_01/D4D060.c @@ -24,11 +24,14 @@ INCLUDE_ASM(s32, "world/area_pra/pra_01/D4D060", func_80240D3C_D4DD7C); INCLUDE_ASM(s32, "world/area_pra/pra_01/D4D060", func_80240EB8_D4DEF8); -INCLUDE_ASM(s32, "world/area_pra/pra_01/D4D060", func_80240EEC_D4DF2C); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_01/D4D060", func_80240F20_D4DF60); -INCLUDE_ASM(s32, "world/area_pra/pra_01/D4D060", func_80240F60_D4DFA0); +ApiStatus func_80240F60_D4DFA0(ScriptInstance* script, s32 isInitialCall) { + D_8009A650[0] &= ~0x80; + return ApiStatus_DONE2; +} #include "world/common/GetNpcCollisionHeight.inc.c" diff --git a/src/world/area_pra/pra_05/D55BD0.c b/src/world/area_pra/pra_05/D55BD0.c index 8e66aa4bb4..60d80a42db 100644 --- a/src/world/area_pra/pra_05/D55BD0.c +++ b/src/world/area_pra/pra_05/D55BD0.c @@ -24,7 +24,7 @@ INCLUDE_ASM(s32, "world/area_pra/pra_05/D55BD0", func_80240D3C_D568EC); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_05/D55BD0", func_80240EEC_D56A9C); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_05/D55BD0", func_80240F20_D56AD0); diff --git a/src/world/area_pra/pra_06/D57430.c b/src/world/area_pra/pra_06/D57430.c index 4fcde46580..eb2d6746b6 100644 --- a/src/world/area_pra/pra_06/D57430.c +++ b/src/world/area_pra/pra_06/D57430.c @@ -26,4 +26,4 @@ INCLUDE_ASM(s32, "world/area_pra/pra_06/D57430", func_80240D6C_D5819C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_06/D57430", func_80240F1C_D5834C); +#include "world/common/SetPartnerFlags20000.inc.c" diff --git a/src/world/area_pra/pra_10/D5F2D0.c b/src/world/area_pra/pra_10/D5F2D0.c index a030e21ad9..aaa2478791 100644 --- a/src/world/area_pra/pra_10/D5F2D0.c +++ b/src/world/area_pra/pra_10/D5F2D0.c @@ -24,6 +24,6 @@ INCLUDE_ASM(s32, "world/area_pra/pra_10/D5F2D0", func_80240D3C_D5FFEC); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_10/D5F2D0", func_80240EEC_D6019C); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_10/D5F2D0", func_80240F20_D601D0); diff --git a/src/world/area_pra/pra_11/D61520.c b/src/world/area_pra/pra_11/D61520.c index 353803b993..48ef19fd5e 100644 --- a/src/world/area_pra/pra_11/D61520.c +++ b/src/world/area_pra/pra_11/D61520.c @@ -24,7 +24,7 @@ INCLUDE_ASM(s32, "world/area_pra/pra_11/D61520", func_80240D3C_D6223C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_11/D61520", func_80240EEC_D623EC); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_11/D61520", func_80240F20_D62420); diff --git a/src/world/area_pra/pra_12/D62D10.c b/src/world/area_pra/pra_12/D62D10.c index fab556b915..7401c5d5d6 100644 --- a/src/world/area_pra/pra_12/D62D10.c +++ b/src/world/area_pra/pra_12/D62D10.c @@ -26,7 +26,7 @@ INCLUDE_ASM(s32, "world/area_pra/pra_12/D62D10", func_80240D6C_D63A7C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_12/D62D10", func_80240F1C_D63C2C); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_12/D62D10", func_80240F50_D63C60); diff --git a/src/world/area_pra/pra_14/D67D20.c b/src/world/area_pra/pra_14/D67D20.c index 67376a1e4f..d9a9d66fa7 100644 --- a/src/world/area_pra/pra_14/D67D20.c +++ b/src/world/area_pra/pra_14/D67D20.c @@ -24,7 +24,7 @@ INCLUDE_ASM(s32, "world/area_pra/pra_14/D67D20", func_80240D3C_D68A3C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_14/D67D20", func_80240EEC_D68BEC); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_14/D67D20", func_80240F20_D68C20); diff --git a/src/world/area_pra/pra_16/D69B40.c b/src/world/area_pra/pra_16/D69B40.c index 6ef3f80fb4..95be9b7a7d 100644 --- a/src/world/area_pra/pra_16/D69B40.c +++ b/src/world/area_pra/pra_16/D69B40.c @@ -24,4 +24,4 @@ INCLUDE_ASM(s32, "world/area_pra/pra_16/D69B40", func_80240D3C_D6A85C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_16/D69B40", func_80240EEC_D6AA0C); +#include "world/common/SetPartnerFlags20000.inc.c" diff --git a/src/world/area_pra/pra_18/D6B640.c b/src/world/area_pra/pra_18/D6B640.c index 3791e03e3e..6e4636e030 100644 --- a/src/world/area_pra/pra_18/D6B640.c +++ b/src/world/area_pra/pra_18/D6B640.c @@ -24,4 +24,4 @@ INCLUDE_ASM(s32, "world/area_pra/pra_18/D6B640", func_80240D3C_D6C35C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_18/D6B640", func_80240EEC_D6C50C); +#include "world/common/SetPartnerFlags20000.inc.c" diff --git a/src/world/area_pra/pra_20/D763C0.c b/src/world/area_pra/pra_20/D763C0.c index eaa094499c..c70a9535f0 100644 --- a/src/world/area_pra/pra_20/D763C0.c +++ b/src/world/area_pra/pra_20/D763C0.c @@ -24,4 +24,4 @@ INCLUDE_ASM(s32, "world/area_pra/pra_20/D763C0", func_80240D3C_D770DC); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_20/D763C0", func_80240EEC_D7728C); +#include "world/common/SetPartnerFlags20000.inc.c" diff --git a/src/world/area_pra/pra_27/D799F0.c b/src/world/area_pra/pra_27/D799F0.c index 625d9e6c89..3411de3245 100644 --- a/src/world/area_pra/pra_27/D799F0.c +++ b/src/world/area_pra/pra_27/D799F0.c @@ -26,7 +26,7 @@ INCLUDE_ASM(s32, "world/area_pra/pra_27/D799F0", func_80240D6C_D7A75C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_27/D799F0", func_80240F1C_D7A90C); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_27/D799F0", func_80240F50_D7A940); diff --git a/src/world/area_pra/pra_28/D7B2A0.c b/src/world/area_pra/pra_28/D7B2A0.c index e8ab8778ba..e1b18143a5 100644 --- a/src/world/area_pra/pra_28/D7B2A0.c +++ b/src/world/area_pra/pra_28/D7B2A0.c @@ -26,7 +26,7 @@ INCLUDE_ASM(s32, "world/area_pra/pra_28/D7B2A0", func_80240D6C_D7C00C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_28/D7B2A0", func_80240F1C_D7C1BC); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_28/D7B2A0", func_80240F50_D7C1F0); diff --git a/src/world/area_pra/pra_29/D7CB70.c b/src/world/area_pra/pra_29/D7CB70.c index 1f57ea2527..41ba906407 100644 --- a/src/world/area_pra/pra_29/D7CB70.c +++ b/src/world/area_pra/pra_29/D7CB70.c @@ -24,7 +24,7 @@ INCLUDE_ASM(s32, "world/area_pra/pra_29/D7CB70", func_80240D3C_D7D88C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_29/D7CB70", func_80240EEC_D7DA3C); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_29/D7CB70", func_80240F20_D7DA70); diff --git a/src/world/area_pra/pra_33/D89700.c b/src/world/area_pra/pra_33/D89700.c index 8d38aaa200..543ca3a92e 100644 --- a/src/world/area_pra/pra_33/D89700.c +++ b/src/world/area_pra/pra_33/D89700.c @@ -24,7 +24,7 @@ INCLUDE_ASM(s32, "world/area_pra/pra_33/D89700", func_80240D3C_D8A41C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_33/D89700", func_80240EEC_D8A5CC); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_33/D89700", func_80240F20_D8A600); diff --git a/src/world/area_pra/pra_35/D8D270.c b/src/world/area_pra/pra_35/D8D270.c index 6bdc664fcb..9317252b46 100644 --- a/src/world/area_pra/pra_35/D8D270.c +++ b/src/world/area_pra/pra_35/D8D270.c @@ -24,7 +24,7 @@ INCLUDE_ASM(s32, "world/area_pra/pra_35/D8D270", func_80240D3C_D8DF8C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_35/D8D270", func_80240EEC_D8E13C); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_35/D8D270", func_80240F20_D8E170); diff --git a/src/world/area_pra/pra_36/D91700.c b/src/world/area_pra/pra_36/D91700.c index fb5c68d026..91f31dac16 100644 --- a/src/world/area_pra/pra_36/D91700.c +++ b/src/world/area_pra/pra_36/D91700.c @@ -26,4 +26,4 @@ INCLUDE_ASM(s32, "world/area_pra/pra_36/D91700", func_80240D6C_D9246C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_36/D91700", func_80240F1C_D9261C); +#include "world/common/SetPartnerFlags20000.inc.c" diff --git a/src/world/area_pra/pra_38/D955F0.c b/src/world/area_pra/pra_38/D955F0.c index 7c53934195..0a22c57f68 100644 --- a/src/world/area_pra/pra_38/D955F0.c +++ b/src/world/area_pra/pra_38/D955F0.c @@ -26,6 +26,6 @@ INCLUDE_ASM(s32, "world/area_pra/pra_38/D955F0", func_80240D6C_D9635C); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_38/D955F0", func_80240F1C_D9650C); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_38/D955F0", func_80240F50_D96540); diff --git a/src/world/area_pra/pra_39/D97890.c b/src/world/area_pra/pra_39/D97890.c index f7ab229344..b2edb281c1 100644 --- a/src/world/area_pra/pra_39/D97890.c +++ b/src/world/area_pra/pra_39/D97890.c @@ -26,6 +26,6 @@ INCLUDE_ASM(s32, "world/area_pra/pra_39/D97890", func_80240D6C_D985FC); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_39/D97890", func_80240F1C_D987AC); +#include "world/common/SetPartnerFlags20000.inc.c" INCLUDE_ASM(s32, "world/area_pra/pra_39/D97890", func_80240F50_D987E0); diff --git a/src/world/area_pra/pra_40/D999D0.c b/src/world/area_pra/pra_40/D999D0.c index 7a53d17de4..098a316fe9 100644 --- a/src/world/area_pra/pra_40/D999D0.c +++ b/src/world/area_pra/pra_40/D999D0.c @@ -24,4 +24,4 @@ INCLUDE_ASM(s32, "world/area_pra/pra_40/D999D0", func_80240D3C_D9A6EC); #include "world/common/SetPartnerFlags80000.inc.c" -INCLUDE_ASM(s32, "world/area_pra/pra_40/D999D0", func_80240EEC_D9A89C); +#include "world/common/SetPartnerFlags20000.inc.c" diff --git a/src/world/common/SetPartnerFlags20000.inc.c b/src/world/common/SetPartnerFlags20000.inc.c new file mode 100644 index 0000000000..d3603504b6 --- /dev/null +++ b/src/world/common/SetPartnerFlags20000.inc.c @@ -0,0 +1,9 @@ +#include "common.h" + +static void SetPartnerFlags20000(void) { + Npc* partner = get_npc_safe(NpcId_PARTNER); + + if (partner != NULL) { + partner->flags |= 0x20000; + } +}