Merge pull request #1111 from leggettc18/rando-skull-message-fix

Fixes skulltula messages for custom items.
This commit is contained in:
briaguya 2022-08-09 08:54:41 -04:00 committed by GitHub
commit 1aeefa3c7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,6 +108,7 @@ void func_80AFB768(EnSi* this, GlobalContext* globalCtx) {
giveItemId = sGetItemTable[getItemId - 1].itemId; giveItemId = sGetItemTable[getItemId - 1].itemId;
Item_Give(globalCtx, giveItemId); Item_Give(globalCtx, giveItemId);
} }
player->getItemId = getItemId;
} else { } else {
Item_Give(globalCtx, giveItemId); Item_Give(globalCtx, giveItemId);
} }
@ -150,6 +151,7 @@ void func_80AFB89C(EnSi* this, GlobalContext* globalCtx) {
giveItemId = sGetItemTable[getItemId - 1].itemId; giveItemId = sGetItemTable[getItemId - 1].itemId;
Item_Give(globalCtx, giveItemId); Item_Give(globalCtx, giveItemId);
} }
player->getItemId = getItemId;
} else { } else {
Item_Give(globalCtx, giveItemId); Item_Give(globalCtx, giveItemId);
} }