diff --git a/src/game/chr/chraicommands.c b/src/game/chr/chraicommands.c index e837a6674..67a7f9572 100644 --- a/src/game/chr/chraicommands.c +++ b/src/game/chr/chraicommands.c @@ -5316,22 +5316,14 @@ bool aiSetViewDistance(void) /** * @cmd 0094 */ -GLOBAL_ASM( -glabel ai0094 -/* f0538a4: 3c04800a */ lui $a0,0x800a -/* f0538a8: 24849fc0 */ addiu $a0,$a0,-24640 -/* f0538ac: 8c8e0434 */ lw $t6,0x434($a0) -/* f0538b0: 8c8f0438 */ lw $t7,0x438($a0) -/* f0538b4: 8c990424 */ lw $t9,0x424($a0) -/* f0538b8: 00001025 */ or $v0,$zero,$zero -/* f0538bc: 01cf1821 */ addu $v1,$t6,$t7 -/* f0538c0: 90780002 */ lbu $t8,0x2($v1) -/* f0538c4: a338000f */ sb $t8,0xf($t9) -/* f0538c8: 8c880438 */ lw $t0,0x438($a0) -/* f0538cc: 25090003 */ addiu $t1,$t0,0x3 -/* f0538d0: 03e00008 */ jr $ra -/* f0538d4: ac890438 */ sw $t1,0x438($a0) -); +bool aiSetGrenadeProbability(void) +{ + u8 *cmd = g_Vars.ailist + g_Vars.aioffset; + g_Vars.chrdata->grenadeprob = cmd[2]; + g_Vars.aioffset += + 3; + + return false; +} /** * @cmd 0095 diff --git a/src/include/game/chr/chraicommands.h b/src/include/game/chr/chraicommands.h index 97ed9b693..0b1edb301 100644 --- a/src/include/game/chr/chraicommands.h +++ b/src/include/game/chr/chraicommands.h @@ -150,7 +150,7 @@ /*0x0091*/ bool ai0091(void); /*0x0092*/ bool aiSetHearDistance(void); /*0x0093*/ bool aiSetViewDistance(void); -/*0x0094*/ bool ai0094(void); +/*0x0094*/ bool aiSetGrenadeProbability(void); /*0x0095*/ bool ai0095(void); /*0x0096*/ bool ai0096(void); /*0x0097*/ bool ai0097(void); diff --git a/src/setup/setup_000000.c b/src/setup/setup_000000.c index a62fc712d..a443eb378 100644 --- a/src/setup/setup_000000.c +++ b/src/setup/setup_000000.c @@ -14101,7 +14101,7 @@ bool (*command_pointers[])(void) = { /*0x0091*/ ai0091, /*0x0092*/ aiSetHearDistance, /*0x0093*/ aiSetViewDistance, - /*0x0094*/ ai0094, + /*0x0094*/ aiSetGrenadeProbability, /*0x0095*/ ai0095, /*0x0096*/ ai0096, /*0x0097*/ ai0097,