Fixed ice traps (maybe actually this time)

This commit is contained in:
aMannus 2022-07-21 08:30:48 +02:00
parent 2c5bdbfd4b
commit 37134cbc9a

View File

@ -137,7 +137,8 @@ void func_80AFB89C(EnSi* this, GlobalContext* globalCtx) {
if (gSaveContext.n64ddFlag) { if (gSaveContext.n64ddFlag) {
getItemId = Randomizer_GetRandomizedItemId(GI_SKULL_TOKEN, this->actor.id, this->actor.params, globalCtx->sceneNum); getItemId = Randomizer_GetRandomizedItemId(GI_SKULL_TOKEN, this->actor.id, this->actor.params, globalCtx->sceneNum);
if (getItemId == GI_ICE_TRAP) { if (getItemId == GI_ICE_TRAP) {
GiveItemWithoutActor(globalCtx, GI_ICE_TRAP); player->getItemId = GI_ICE_TRAP;
player->iceTrapped = 1;
textId = 0xF8; textId = 0xF8;
} else { } else {
textId = sGetItemTable[getItemId - 1].textId; textId = sGetItemTable[getItemId - 1].textId;