mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-13 15:08:03 -05:00
Fixes ocarina game skull kids to set player->getItemEntry
This commit is contained in:
parent
170b297a7a
commit
f8b55ea78c
@ -1536,11 +1536,12 @@ void EnSkj_WonOcarinaMiniGame(EnSkj* this, GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
void EnSkj_WaitToGiveReward(EnSkj* this, GlobalContext* globalCtx) {
|
void EnSkj_WaitToGiveReward(EnSkj* this, GlobalContext* globalCtx) {
|
||||||
if ((Message_GetState(&globalCtx->msgCtx) == TEXT_STATE_DONE) && Message_ShouldAdvance(globalCtx)) {
|
if ((Message_GetState(&globalCtx->msgCtx) == TEXT_STATE_DONE) && Message_ShouldAdvance(globalCtx)) {
|
||||||
func_8002F434(&this->actor, globalCtx,
|
if (gSaveContext.n64ddFlag && gSaveContext.ocarinaGameRoundNum != 3) {
|
||||||
gSaveContext.n64ddFlag && gSaveContext.ocarinaGameRoundNum != 3
|
GetItemEntry getItemEntry = Randomizer_GetItemFromKnownCheck(RC_LW_OCARINA_MEMORY_GAME, GI_HEART_PIECE);
|
||||||
? Randomizer_GetItemFromKnownCheck(RC_LW_OCARINA_MEMORY_GAME, GI_HEART_PIECE).getItemId
|
GiveItemEntryFromActor(&this->actor, globalCtx, getItemEntry, 26.0f, 26.0f);
|
||||||
: sOcarinaGameRewards[gSaveContext.ocarinaGameRoundNum],
|
} else {
|
||||||
26.0f, 26.0f);
|
func_8002F434(&this->actor, globalCtx, sOcarinaGameRewards[gSaveContext.ocarinaGameRoundNum], 26.0f, 26.0f);
|
||||||
|
}
|
||||||
|
|
||||||
this->actionFunc = EnSkj_GiveOcarinaGameReward;
|
this->actionFunc = EnSkj_GiveOcarinaGameReward;
|
||||||
}
|
}
|
||||||
@ -1551,11 +1552,12 @@ void EnSkj_GiveOcarinaGameReward(EnSkj* this, GlobalContext* globalCtx) {
|
|||||||
this->actor.parent = NULL;
|
this->actor.parent = NULL;
|
||||||
this->actionFunc = EnSkj_FinishOcarinaGameRound;
|
this->actionFunc = EnSkj_FinishOcarinaGameRound;
|
||||||
} else {
|
} else {
|
||||||
func_8002F434(&this->actor, globalCtx,
|
if (gSaveContext.n64ddFlag && gSaveContext.ocarinaGameRoundNum != 3) {
|
||||||
gSaveContext.n64ddFlag && gSaveContext.ocarinaGameRoundNum != 3
|
GetItemEntry getItemEntry = Randomizer_GetItemFromKnownCheck(RC_LW_OCARINA_MEMORY_GAME, GI_HEART_PIECE);
|
||||||
? Randomizer_GetItemFromKnownCheck(RC_LW_OCARINA_MEMORY_GAME, GI_HEART_PIECE).getItemId
|
GiveItemEntryFromActor(&this->actor, globalCtx, getItemEntry, 26.0f, 26.0f);
|
||||||
: sOcarinaGameRewards[gSaveContext.ocarinaGameRoundNum],
|
} else {
|
||||||
26.0f, 26.0f);
|
func_8002F434(&this->actor, globalCtx, sOcarinaGameRewards[gSaveContext.ocarinaGameRoundNum], 26.0f, 26.0f);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user