From ac279b1cfe61fc77f76aa6e705665f63c646d701 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Sun, 20 Oct 2019 14:19:30 +1000 Subject: [PATCH] Decompile ai00fe --- src/game/chr/chraicommands.c | 20 +++++++------------- src/include/types.h | 7 +++++++ 2 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/game/chr/chraicommands.c b/src/game/chr/chraicommands.c index a686aa4cb..529b29dc9 100644 --- a/src/game/chr/chraicommands.c +++ b/src/game/chr/chraicommands.c @@ -10472,19 +10472,13 @@ bool ai00fd(void) /** * @cmd 00fe */ -GLOBAL_ASM( -glabel ai00fe -/* f058950: 3c03800a */ lui $v1,0x800a -/* f058954: 24639fc0 */ addiu $v1,$v1,-24640 -/* f058958: 8c6f02a0 */ lw $t7,0x2a0($v1) -/* f05895c: 240e0001 */ addiu $t6,$zero,0x1 -/* f058960: 00001025 */ or $v0,$zero,$zero -/* f058964: adee00d8 */ sw $t6,0xd8($t7) -/* f058968: 8c780438 */ lw $t8,0x438($v1) -/* f05896c: 27190002 */ addiu $t9,$t8,0x2 -/* f058970: 03e00008 */ jr $ra -/* f058974: ac790438 */ sw $t9,0x438($v1) -); +bool ai00fe(void) +{ + g_Vars.bond->unkd8 = 1; + g_Vars.aioffset += 2; + + return false; +} /** * @cmd 00ff diff --git a/src/include/types.h b/src/include/types.h index 4a01f6278..f01d788ed 100644 --- a/src/include/types.h +++ b/src/include/types.h @@ -460,6 +460,13 @@ struct player { /*0xb4*/ u32 unkb4; /*0xb8*/ u32 unkb8; /*0xbc*/ struct playerbc *unkbc; + /*0xc0*/ u32 unkc0; + /*0xc4*/ u32 unkc4; + /*0xc8*/ u32 unkc8; + /*0xcc*/ u32 unkcc; + /*0xd0*/ u32 unkd0; + /*0xd4*/ u32 unkd4; + /*0xd8*/ u32 unkd8; }; struct targetsomething {