From 0cc59a93706213d3d5be89efd7d9331e468365ec Mon Sep 17 00:00:00 2001 From: aMannus Date: Wed, 20 Jul 2022 17:15:22 +0200 Subject: [PATCH] Fix for spooders to overwroote each ooder --- soh/src/overlays/actors/ovl_En_Si/z_en_si.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/soh/src/overlays/actors/ovl_En_Si/z_en_si.c b/soh/src/overlays/actors/ovl_En_Si/z_en_si.c index 44b52389c..eed9f74a3 100644 --- a/soh/src/overlays/actors/ovl_En_Si/z_en_si.c +++ b/soh/src/overlays/actors/ovl_En_Si/z_en_si.c @@ -103,6 +103,7 @@ void func_80AFB768(EnSi* this, GlobalContext* globalCtx) { player->iceTrapped = 1; textId = 0xF8; } else { + getItemId = Randomizer_GetRandomizedItemId(GI_SKULL_TOKEN, this->actor.id, this->actor.params, globalCtx->sceneNum); textId = sGetItemTable[getItemId - 1].textId; giveItemId = sGetItemTable[getItemId - 1].itemId; } @@ -136,6 +137,7 @@ void func_80AFB89C(EnSi* this, GlobalContext* globalCtx) { GiveItemWithoutActor(globalCtx, GI_ICE_TRAP); textId = 0xF8; } else { + getItemId = Randomizer_GetRandomizedItemId(GI_SKULL_TOKEN, this->actor.id, this->actor.params, globalCtx->sceneNum); textId = sGetItemTable[getItemId - 1].textId; giveItemId = sGetItemTable[getItemId - 1].itemId; }