mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
Match func_8026EBF8, LoadFreeItemScript, and LoadItemScript (#543)
* Match func_8026EBF8 * Delete func_8026EBF8.s * Match LoadItemScript * Delete LoadItemScript.s * Document more of DecorationTable * Fix warning. * Comments * Comments * Match LoadFreeItemScript * Delete LoadFreeItemScript.s * doublke * Alex GOAT Co-authored-by: Alex Bates <hi@imalex.xyz> Co-authored-by: Alex Bates <hi@imalex.xyz>
This commit is contained in:
parent
d2ce4dd89e
commit
72b2e593f6
@ -688,7 +688,7 @@ typedef struct BattleStatus {
|
||||
/* 0x085 */ s8 unk_85;
|
||||
/* 0x086 */ s8 unk_86;
|
||||
/* 0x087 */ s8 blockResult; /* 0 = fail, 1 = success, -1 = mashed */
|
||||
/* 0x088 */ u8 itemUsesLeft; /* set to 2 for doublke dip, 3 for triple */
|
||||
/* 0x088 */ s8 itemUsesLeft; /* set to 2 for double dip, 3 for triple dip */
|
||||
/* 0x089 */ u8 hpDrainCount;
|
||||
/* 0x08A */ s8 unk_8A;
|
||||
/* 0x08B */ s8 hustleTurns; /* numTurns from hustle drink, normally 0 */
|
||||
@ -1447,7 +1447,15 @@ typedef struct DecorationTable {
|
||||
/* 0x6CD */ s8 unk_6CD;
|
||||
/* 0x6CE */ char unk_6CE[6];
|
||||
/* 0x6D4 */ s32* unk_6D4;
|
||||
/* 0x6D8 */ char unk_6D8[120];
|
||||
/* 0x6D8 */ char unk_6D8[0x68];
|
||||
/* 0x740 */ s16 unk_740;
|
||||
/* 0x742 */ s16 unk_742;
|
||||
/* 0x744 */ s16 unk_744;
|
||||
/* 0x746 */ s16 unk_746;
|
||||
/* 0x748 */ s16 unk_748;
|
||||
/* 0x74A */ s16 unk_74A;
|
||||
/* 0x74C */ s16 unk_74C;
|
||||
/* 0x74E */ s16 unk_74E;
|
||||
/* 0x750 */ s8 unk_750;
|
||||
/* 0x751 */ s8 unk_751;
|
||||
/* 0x752 */ s8 unk_752;
|
||||
|
94
src/1967B0.c
94
src/1967B0.c
@ -1,8 +1,6 @@
|
||||
#include "common.h"
|
||||
|
||||
INCLUDE_ASM(s32, "1967B0", LoadItemScript);
|
||||
|
||||
extern s32 D_80293B80;
|
||||
extern s32 D_80293B80[];
|
||||
|
||||
typedef struct BattleItemTableEntry {
|
||||
/* 0x0 */ u8* romStart;
|
||||
@ -13,7 +11,95 @@ typedef struct BattleItemTableEntry {
|
||||
|
||||
extern BattleItemTableEntry gBattleItemTable[];
|
||||
|
||||
INCLUDE_ASM(s32, "1967B0", LoadFreeItemScript);
|
||||
ApiStatus LoadItemScript(Evt* script, s32 isInitialCall) {
|
||||
PlayerData* playerData = &gPlayerData;
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
s16 itemID = battleStatus->selectedItemID;
|
||||
StaticItem* item = &gItemTable[itemID];
|
||||
s32 i = 0;
|
||||
s32* itemPtr;
|
||||
|
||||
while (1) {
|
||||
if (playerData->invItems[i] == itemID) {
|
||||
playerData->invItems[i] = 0;
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
sort_items();
|
||||
|
||||
if (battleStatus->selectedMoveID == MOVE_DOUBLE_DIP) {
|
||||
if (battleStatus->itemUsesLeft == 2) {
|
||||
deduct_current_move_fp();
|
||||
}
|
||||
}
|
||||
|
||||
if (battleStatus->selectedMoveID == MOVE_TRIPLE_DIP) {
|
||||
if (battleStatus->itemUsesLeft == 3) {
|
||||
deduct_current_move_fp();
|
||||
}
|
||||
}
|
||||
|
||||
itemPtr = &D_80293B80[0];
|
||||
for (i = 0; *itemPtr != ITEM_NONE; i++, itemPtr++) {
|
||||
if (*itemPtr == battleStatus->selectedItemID) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (*itemPtr == ITEM_NONE) {
|
||||
if (item->typeFlags & 0x80) {
|
||||
i = 0;
|
||||
} else {
|
||||
i = 1;
|
||||
}
|
||||
}
|
||||
|
||||
dma_copy(gBattleItemTable[i].romStart, gBattleItemTable[i].romEnd, gBattleItemTable[i].vramStart);
|
||||
|
||||
script->varTable[0] = (s32) gBattleItemTable[i].vramEnd;
|
||||
script->varTable[1] = 0;
|
||||
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus LoadFreeItemScript(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
Actor* actor = battleStatus->playerActor;
|
||||
StaticItem* item = &gItemTable[battleStatus->selectedItemID];
|
||||
SelectableTarget* target;
|
||||
s32* itemPtr;
|
||||
s32 i;
|
||||
|
||||
battleStatus->currentTargetListFlags = item->targetFlags | 0x8000;
|
||||
battleStatus->currentAttackElement = 0;
|
||||
|
||||
player_create_target_list(actor);
|
||||
target = &actor->targetData[actor->targetIndexList[0]];
|
||||
|
||||
battleStatus->currentTargetID = target->actorID;
|
||||
battleStatus->currentTargetPart = target->partID;
|
||||
|
||||
itemPtr = &D_80293B80[0];
|
||||
for (i = 0; *itemPtr != ITEM_NONE; i++, itemPtr++) {
|
||||
if (*itemPtr == battleStatus->selectedItemID){
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (*itemPtr == ITEM_NONE) {
|
||||
if (item->typeFlags & 0x80) {
|
||||
i = 0;
|
||||
} else {
|
||||
i = 1;
|
||||
}
|
||||
}
|
||||
|
||||
dma_copy(gBattleItemTable[i].romStart, gBattleItemTable[i].romEnd, gBattleItemTable[i].vramStart);
|
||||
script->varTable[0] = (s32) gBattleItemTable[i].vramEnd;
|
||||
script->varTable[1] = 1;
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
ApiStatus LoadMoveScript(Evt* script, s32 isInitialCall) {
|
||||
BattleStatus* battleStatus = &gBattleStatus;
|
||||
|
24
src/197F40.c
24
src/197F40.c
@ -2297,7 +2297,29 @@ ApiStatus func_8026EA7C(Evt* script, s32 isInitialCall) {
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", func_8026EB20);
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", func_8026EBF8);
|
||||
ApiStatus func_8026EBF8(Evt* script, s32 isInitialCall) {
|
||||
Bytecode* args = script->ptrReadPos;
|
||||
s32 actorID = evt_get_variable(script, *args++);
|
||||
s32 partIndex = evt_get_variable(script, *args++);
|
||||
DecorationTable* table;
|
||||
|
||||
if (actorID == ACTOR_SELF) {
|
||||
actorID = script->owner1.enemyID;
|
||||
}
|
||||
|
||||
table = get_actor_part(get_actor(actorID), partIndex)->decorationTable;
|
||||
|
||||
table->unk_740 = evt_get_variable(script, *args++);
|
||||
table->unk_742 = evt_get_variable(script, *args++);
|
||||
table->unk_744 = evt_get_variable(script, *args++);
|
||||
table->unk_746 = evt_get_variable(script, *args++);
|
||||
table->unk_748 = evt_get_variable(script, *args++);
|
||||
table->unk_74A = evt_get_variable(script, *args++);
|
||||
table->unk_74C = evt_get_variable(script, *args++);
|
||||
table->unk_74E = evt_get_variable(script, *args++);
|
||||
|
||||
return ApiStatus_DONE2;
|
||||
}
|
||||
|
||||
INCLUDE_ASM(s32, "197F40", func_8026ED20);
|
||||
|
||||
|
@ -1,77 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel LoadFreeItemScript
|
||||
/* 1968FC 8026801C 27BDFFD8 */ addiu $sp, $sp, -0x28
|
||||
/* 196900 80268020 AFB3001C */ sw $s3, 0x1c($sp)
|
||||
/* 196904 80268024 0080982D */ daddu $s3, $a0, $zero
|
||||
/* 196908 80268028 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 19690C 8026802C 3C11800E */ lui $s1, %hi(gBattleStatus)
|
||||
/* 196910 80268030 2631C070 */ addiu $s1, $s1, %lo(gBattleStatus)
|
||||
/* 196914 80268034 3C038008 */ lui $v1, %hi(gItemTable)
|
||||
/* 196918 80268038 246378E0 */ addiu $v1, $v1, %lo(gItemTable)
|
||||
/* 19691C 8026803C AFBF0020 */ sw $ra, 0x20($sp)
|
||||
/* 196920 80268040 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 196924 80268044 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 196928 80268048 8622017A */ lh $v0, 0x17a($s1)
|
||||
/* 19692C 8026804C 8E3000D8 */ lw $s0, 0xd8($s1)
|
||||
/* 196930 80268050 00021140 */ sll $v0, $v0, 5
|
||||
/* 196934 80268054 00439021 */ addu $s2, $v0, $v1
|
||||
/* 196938 80268058 8E420008 */ lw $v0, 8($s2)
|
||||
/* 19693C 8026805C 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 196940 80268060 AE200188 */ sw $zero, 0x188($s1)
|
||||
/* 196944 80268064 34428000 */ ori $v0, $v0, 0x8000
|
||||
/* 196948 80268068 0C098C0B */ jal player_create_target_list
|
||||
/* 19694C 8026806C AE220184 */ sw $v0, 0x184($s1)
|
||||
/* 196950 80268070 8203040D */ lb $v1, 0x40d($s0)
|
||||
/* 196954 80268074 00031080 */ sll $v0, $v1, 2
|
||||
/* 196958 80268078 00431021 */ addu $v0, $v0, $v1
|
||||
/* 19695C 8026807C 00021080 */ sll $v0, $v0, 2
|
||||
/* 196960 80268080 2442022C */ addiu $v0, $v0, 0x22c
|
||||
/* 196964 80268084 02028021 */ addu $s0, $s0, $v0
|
||||
/* 196968 80268088 96020000 */ lhu $v0, ($s0)
|
||||
/* 19696C 8026808C A62201A0 */ sh $v0, 0x1a0($s1)
|
||||
/* 196970 80268090 92020003 */ lbu $v0, 3($s0)
|
||||
/* 196974 80268094 3C038029 */ lui $v1, %hi(D_80293B80)
|
||||
/* 196978 80268098 24633B80 */ addiu $v1, $v1, %lo(D_80293B80)
|
||||
/* 19697C 8026809C A22201A2 */ sb $v0, 0x1a2($s1)
|
||||
/* 196980 802680A0 8C620000 */ lw $v0, ($v1)
|
||||
/* 196984 802680A4 1040000B */ beqz $v0, .L802680D4
|
||||
/* 196988 802680A8 0000802D */ daddu $s0, $zero, $zero
|
||||
/* 19698C 802680AC 8624017A */ lh $a0, 0x17a($s1)
|
||||
/* 196990 802680B0 8C620000 */ lw $v0, ($v1)
|
||||
.L802680B4:
|
||||
/* 196994 802680B4 10440005 */ beq $v0, $a0, .L802680CC
|
||||
/* 196998 802680B8 24630004 */ addiu $v1, $v1, 4
|
||||
/* 19699C 802680BC 8C620000 */ lw $v0, ($v1)
|
||||
/* 1969A0 802680C0 1440FFFC */ bnez $v0, .L802680B4
|
||||
/* 1969A4 802680C4 26100001 */ addiu $s0, $s0, 1
|
||||
/* 1969A8 802680C8 8C620000 */ lw $v0, ($v1)
|
||||
.L802680CC:
|
||||
/* 1969AC 802680CC 14400004 */ bnez $v0, .L802680E0
|
||||
/* 1969B0 802680D0 00000000 */ nop
|
||||
.L802680D4:
|
||||
/* 1969B4 802680D4 96420018 */ lhu $v0, 0x18($s2)
|
||||
/* 1969B8 802680D8 30420080 */ andi $v0, $v0, 0x80
|
||||
/* 1969BC 802680DC 2C500001 */ sltiu $s0, $v0, 1
|
||||
.L802680E0:
|
||||
/* 1969C0 802680E0 3C028029 */ lui $v0, %hi(gBattleItemTable)
|
||||
/* 1969C4 802680E4 24423C04 */ addiu $v0, $v0, %lo(gBattleItemTable)
|
||||
/* 1969C8 802680E8 00108100 */ sll $s0, $s0, 4
|
||||
/* 1969CC 802680EC 02028021 */ addu $s0, $s0, $v0
|
||||
/* 1969D0 802680F0 8E040000 */ lw $a0, ($s0)
|
||||
/* 1969D4 802680F4 8E050004 */ lw $a1, 4($s0)
|
||||
/* 1969D8 802680F8 0C00A5CF */ jal dma_copy
|
||||
/* 1969DC 802680FC 8E060008 */ lw $a2, 8($s0)
|
||||
/* 1969E0 80268100 8E04000C */ lw $a0, 0xc($s0)
|
||||
/* 1969E4 80268104 24030001 */ addiu $v1, $zero, 1
|
||||
/* 1969E8 80268108 AE630088 */ sw $v1, 0x88($s3)
|
||||
/* 1969EC 8026810C AE640084 */ sw $a0, 0x84($s3)
|
||||
/* 1969F0 80268110 8FBF0020 */ lw $ra, 0x20($sp)
|
||||
/* 1969F4 80268114 8FB3001C */ lw $s3, 0x1c($sp)
|
||||
/* 1969F8 80268118 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1969FC 8026811C 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 196A00 80268120 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 196A04 80268124 24020002 */ addiu $v0, $zero, 2
|
||||
/* 196A08 80268128 03E00008 */ jr $ra
|
||||
/* 196A0C 8026812C 27BD0028 */ addiu $sp, $sp, 0x28
|
@ -1,96 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel LoadItemScript
|
||||
/* 1967B0 80267ED0 27BDFFD8 */ addiu $sp, $sp, -0x28
|
||||
/* 1967B4 80267ED4 AFB3001C */ sw $s3, 0x1c($sp)
|
||||
/* 1967B8 80267ED8 0080982D */ daddu $s3, $a0, $zero
|
||||
/* 1967BC 80267EDC AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 1967C0 80267EE0 0000802D */ daddu $s0, $zero, $zero
|
||||
/* 1967C4 80267EE4 3C068011 */ lui $a2, %hi(gPlayerData)
|
||||
/* 1967C8 80267EE8 24C6F290 */ addiu $a2, $a2, %lo(gPlayerData)
|
||||
/* 1967CC 80267EEC 00C0282D */ daddu $a1, $a2, $zero
|
||||
/* 1967D0 80267EF0 AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 1967D4 80267EF4 3C11800E */ lui $s1, %hi(gBattleStatus)
|
||||
/* 1967D8 80267EF8 2631C070 */ addiu $s1, $s1, %lo(gBattleStatus)
|
||||
/* 1967DC 80267EFC AFBF0020 */ sw $ra, 0x20($sp)
|
||||
/* 1967E0 80267F00 AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 1967E4 80267F04 8624017A */ lh $a0, 0x17a($s1)
|
||||
/* 1967E8 80267F08 3C038008 */ lui $v1, %hi(gItemTable)
|
||||
/* 1967EC 80267F0C 246378E0 */ addiu $v1, $v1, %lo(gItemTable)
|
||||
/* 1967F0 80267F10 00041140 */ sll $v0, $a0, 5
|
||||
/* 1967F4 80267F14 00439021 */ addu $s2, $v0, $v1
|
||||
.L80267F18:
|
||||
/* 1967F8 80267F18 84A201B4 */ lh $v0, 0x1b4($a1)
|
||||
/* 1967FC 80267F1C 10440004 */ beq $v0, $a0, .L80267F30
|
||||
/* 196800 80267F20 00101840 */ sll $v1, $s0, 1
|
||||
/* 196804 80267F24 24A50002 */ addiu $a1, $a1, 2
|
||||
/* 196808 80267F28 08099FC6 */ j .L80267F18
|
||||
/* 19680C 80267F2C 26100001 */ addiu $s0, $s0, 1
|
||||
.L80267F30:
|
||||
/* 196810 80267F30 00C31021 */ addu $v0, $a2, $v1
|
||||
/* 196814 80267F34 0C039DB3 */ jal sort_items
|
||||
/* 196818 80267F38 A44001B4 */ sh $zero, 0x1b4($v0)
|
||||
/* 19681C 80267F3C 8623017C */ lh $v1, 0x17c($s1)
|
||||
/* 196820 80267F40 24020035 */ addiu $v0, $zero, 0x35
|
||||
/* 196824 80267F44 14620009 */ bne $v1, $v0, .L80267F6C
|
||||
/* 196828 80267F48 24020036 */ addiu $v0, $zero, 0x36
|
||||
/* 19682C 80267F4C 82230088 */ lb $v1, 0x88($s1)
|
||||
/* 196830 80267F50 24020002 */ addiu $v0, $zero, 2
|
||||
/* 196834 80267F54 14620003 */ bne $v1, $v0, .L80267F64
|
||||
/* 196838 80267F58 00000000 */ nop
|
||||
/* 19683C 80267F5C 0C098EF2 */ jal deduct_current_move_fp
|
||||
/* 196840 80267F60 00000000 */ nop
|
||||
.L80267F64:
|
||||
/* 196844 80267F64 8623017C */ lh $v1, 0x17c($s1)
|
||||
/* 196848 80267F68 24020036 */ addiu $v0, $zero, 0x36
|
||||
.L80267F6C:
|
||||
/* 19684C 80267F6C 14620006 */ bne $v1, $v0, .L80267F88
|
||||
/* 196850 80267F70 24020003 */ addiu $v0, $zero, 3
|
||||
/* 196854 80267F74 82230088 */ lb $v1, 0x88($s1)
|
||||
/* 196858 80267F78 14620003 */ bne $v1, $v0, .L80267F88
|
||||
/* 19685C 80267F7C 00000000 */ nop
|
||||
/* 196860 80267F80 0C098EF2 */ jal deduct_current_move_fp
|
||||
/* 196864 80267F84 00000000 */ nop
|
||||
.L80267F88:
|
||||
/* 196868 80267F88 3C038029 */ lui $v1, %hi(D_80293B80)
|
||||
/* 19686C 80267F8C 24633B80 */ addiu $v1, $v1, %lo(D_80293B80)
|
||||
/* 196870 80267F90 8C620000 */ lw $v0, ($v1)
|
||||
/* 196874 80267F94 1040000B */ beqz $v0, .L80267FC4
|
||||
/* 196878 80267F98 0000802D */ daddu $s0, $zero, $zero
|
||||
/* 19687C 80267F9C 8624017A */ lh $a0, 0x17a($s1)
|
||||
/* 196880 80267FA0 8C620000 */ lw $v0, ($v1)
|
||||
.L80267FA4:
|
||||
/* 196884 80267FA4 10440005 */ beq $v0, $a0, .L80267FBC
|
||||
/* 196888 80267FA8 24630004 */ addiu $v1, $v1, 4
|
||||
/* 19688C 80267FAC 8C620000 */ lw $v0, ($v1)
|
||||
/* 196890 80267FB0 1440FFFC */ bnez $v0, .L80267FA4
|
||||
/* 196894 80267FB4 26100001 */ addiu $s0, $s0, 1
|
||||
/* 196898 80267FB8 8C620000 */ lw $v0, ($v1)
|
||||
.L80267FBC:
|
||||
/* 19689C 80267FBC 14400004 */ bnez $v0, .L80267FD0
|
||||
/* 1968A0 80267FC0 00000000 */ nop
|
||||
.L80267FC4:
|
||||
/* 1968A4 80267FC4 96420018 */ lhu $v0, 0x18($s2)
|
||||
/* 1968A8 80267FC8 30420080 */ andi $v0, $v0, 0x80
|
||||
/* 1968AC 80267FCC 2C500001 */ sltiu $s0, $v0, 1
|
||||
.L80267FD0:
|
||||
/* 1968B0 80267FD0 3C028029 */ lui $v0, %hi(gBattleItemTable)
|
||||
/* 1968B4 80267FD4 24423C04 */ addiu $v0, $v0, %lo(gBattleItemTable)
|
||||
/* 1968B8 80267FD8 00108100 */ sll $s0, $s0, 4
|
||||
/* 1968BC 80267FDC 02028021 */ addu $s0, $s0, $v0
|
||||
/* 1968C0 80267FE0 8E040000 */ lw $a0, ($s0)
|
||||
/* 1968C4 80267FE4 8E050004 */ lw $a1, 4($s0)
|
||||
/* 1968C8 80267FE8 0C00A5CF */ jal dma_copy
|
||||
/* 1968CC 80267FEC 8E060008 */ lw $a2, 8($s0)
|
||||
/* 1968D0 80267FF0 8E03000C */ lw $v1, 0xc($s0)
|
||||
/* 1968D4 80267FF4 AE600088 */ sw $zero, 0x88($s3)
|
||||
/* 1968D8 80267FF8 AE630084 */ sw $v1, 0x84($s3)
|
||||
/* 1968DC 80267FFC 8FBF0020 */ lw $ra, 0x20($sp)
|
||||
/* 1968E0 80268000 8FB3001C */ lw $s3, 0x1c($sp)
|
||||
/* 1968E4 80268004 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 1968E8 80268008 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 1968EC 8026800C 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 1968F0 80268010 24020002 */ addiu $v0, $zero, 2
|
||||
/* 1968F4 80268014 03E00008 */ jr $ra
|
||||
/* 1968F8 80268018 27BD0028 */ addiu $sp, $sp, 0x28
|
@ -1,79 +0,0 @@
|
||||
.set noat # allow manual use of $at
|
||||
.set noreorder # don't insert nops after branches
|
||||
|
||||
glabel func_8026EBF8
|
||||
/* 19D4D8 8026EBF8 27BDFFD8 */ addiu $sp, $sp, -0x28
|
||||
/* 19D4DC 8026EBFC AFB20018 */ sw $s2, 0x18($sp)
|
||||
/* 19D4E0 8026EC00 0080902D */ daddu $s2, $a0, $zero
|
||||
/* 19D4E4 8026EC04 AFBF0020 */ sw $ra, 0x20($sp)
|
||||
/* 19D4E8 8026EC08 AFB3001C */ sw $s3, 0x1c($sp)
|
||||
/* 19D4EC 8026EC0C AFB10014 */ sw $s1, 0x14($sp)
|
||||
/* 19D4F0 8026EC10 AFB00010 */ sw $s0, 0x10($sp)
|
||||
/* 19D4F4 8026EC14 8E51000C */ lw $s1, 0xc($s2)
|
||||
/* 19D4F8 8026EC18 8E250000 */ lw $a1, ($s1)
|
||||
/* 19D4FC 8026EC1C 0C0B1EAF */ jal evt_get_variable
|
||||
/* 19D500 8026EC20 26310004 */ addiu $s1, $s1, 4
|
||||
/* 19D504 8026EC24 0040802D */ daddu $s0, $v0, $zero
|
||||
/* 19D508 8026EC28 8E250000 */ lw $a1, ($s1)
|
||||
/* 19D50C 8026EC2C 26310004 */ addiu $s1, $s1, 4
|
||||
/* 19D510 8026EC30 0C0B1EAF */ jal evt_get_variable
|
||||
/* 19D514 8026EC34 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 19D518 8026EC38 0040982D */ daddu $s3, $v0, $zero
|
||||
/* 19D51C 8026EC3C 2402FF81 */ addiu $v0, $zero, -0x7f
|
||||
/* 19D520 8026EC40 16020002 */ bne $s0, $v0, .L8026EC4C
|
||||
/* 19D524 8026EC44 00000000 */ nop
|
||||
/* 19D528 8026EC48 8E500148 */ lw $s0, 0x148($s2)
|
||||
.L8026EC4C:
|
||||
/* 19D52C 8026EC4C 0C09A75B */ jal get_actor
|
||||
/* 19D530 8026EC50 0200202D */ daddu $a0, $s0, $zero
|
||||
/* 19D534 8026EC54 0040202D */ daddu $a0, $v0, $zero
|
||||
/* 19D538 8026EC58 0C099117 */ jal get_actor_part
|
||||
/* 19D53C 8026EC5C 0260282D */ daddu $a1, $s3, $zero
|
||||
/* 19D540 8026EC60 8E250000 */ lw $a1, ($s1)
|
||||
/* 19D544 8026EC64 26310004 */ addiu $s1, $s1, 4
|
||||
/* 19D548 8026EC68 8C5000C0 */ lw $s0, 0xc0($v0)
|
||||
/* 19D54C 8026EC6C 0C0B1EAF */ jal evt_get_variable
|
||||
/* 19D550 8026EC70 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 19D554 8026EC74 A6020740 */ sh $v0, 0x740($s0)
|
||||
/* 19D558 8026EC78 8E250000 */ lw $a1, ($s1)
|
||||
/* 19D55C 8026EC7C 26310004 */ addiu $s1, $s1, 4
|
||||
/* 19D560 8026EC80 0C0B1EAF */ jal evt_get_variable
|
||||
/* 19D564 8026EC84 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 19D568 8026EC88 A6020742 */ sh $v0, 0x742($s0)
|
||||
/* 19D56C 8026EC8C 8E250000 */ lw $a1, ($s1)
|
||||
/* 19D570 8026EC90 26310004 */ addiu $s1, $s1, 4
|
||||
/* 19D574 8026EC94 0C0B1EAF */ jal evt_get_variable
|
||||
/* 19D578 8026EC98 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 19D57C 8026EC9C A6020744 */ sh $v0, 0x744($s0)
|
||||
/* 19D580 8026ECA0 8E250000 */ lw $a1, ($s1)
|
||||
/* 19D584 8026ECA4 26310004 */ addiu $s1, $s1, 4
|
||||
/* 19D588 8026ECA8 0C0B1EAF */ jal evt_get_variable
|
||||
/* 19D58C 8026ECAC 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 19D590 8026ECB0 A6020746 */ sh $v0, 0x746($s0)
|
||||
/* 19D594 8026ECB4 8E250000 */ lw $a1, ($s1)
|
||||
/* 19D598 8026ECB8 26310004 */ addiu $s1, $s1, 4
|
||||
/* 19D59C 8026ECBC 0C0B1EAF */ jal evt_get_variable
|
||||
/* 19D5A0 8026ECC0 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 19D5A4 8026ECC4 A6020748 */ sh $v0, 0x748($s0)
|
||||
/* 19D5A8 8026ECC8 8E250000 */ lw $a1, ($s1)
|
||||
/* 19D5AC 8026ECCC 26310004 */ addiu $s1, $s1, 4
|
||||
/* 19D5B0 8026ECD0 0C0B1EAF */ jal evt_get_variable
|
||||
/* 19D5B4 8026ECD4 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 19D5B8 8026ECD8 A602074A */ sh $v0, 0x74a($s0)
|
||||
/* 19D5BC 8026ECDC 8E250000 */ lw $a1, ($s1)
|
||||
/* 19D5C0 8026ECE0 26310004 */ addiu $s1, $s1, 4
|
||||
/* 19D5C4 8026ECE4 0C0B1EAF */ jal evt_get_variable
|
||||
/* 19D5C8 8026ECE8 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 19D5CC 8026ECEC A602074C */ sh $v0, 0x74c($s0)
|
||||
/* 19D5D0 8026ECF0 8E250000 */ lw $a1, ($s1)
|
||||
/* 19D5D4 8026ECF4 0C0B1EAF */ jal evt_get_variable
|
||||
/* 19D5D8 8026ECF8 0240202D */ daddu $a0, $s2, $zero
|
||||
/* 19D5DC 8026ECFC A602074E */ sh $v0, 0x74e($s0)
|
||||
/* 19D5E0 8026ED00 8FBF0020 */ lw $ra, 0x20($sp)
|
||||
/* 19D5E4 8026ED04 8FB3001C */ lw $s3, 0x1c($sp)
|
||||
/* 19D5E8 8026ED08 8FB20018 */ lw $s2, 0x18($sp)
|
||||
/* 19D5EC 8026ED0C 8FB10014 */ lw $s1, 0x14($sp)
|
||||
/* 19D5F0 8026ED10 8FB00010 */ lw $s0, 0x10($sp)
|
||||
/* 19D5F4 8026ED14 24020002 */ addiu $v0, $zero, 2
|
||||
/* 19D5F8 8026ED18 03E00008 */ jr $ra
|
||||
/* 19D5FC 8026ED1C 27BD0028 */ addiu $sp, $sp, 0x28
|
Loading…
Reference in New Issue
Block a user