mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-23 22:32:50 -05:00
add check for mask shop being open to mask select
This commit is contained in:
parent
b03d23f61f
commit
2af572aa30
@ -354,8 +354,13 @@ void KaleidoScope_DrawItemSelect(GlobalContext* globalCtx) {
|
|||||||
KaleidoScope_SetCursorVtx(pauseCtx, index, pauseCtx->itemVtx);
|
KaleidoScope_SetCursorVtx(pauseCtx, index, pauseCtx->itemVtx);
|
||||||
|
|
||||||
if ((pauseCtx->debugState == 0) && (pauseCtx->state == 6) && (pauseCtx->unk_1E4 == 0)) {
|
if ((pauseCtx->debugState == 0) && (pauseCtx->state == 6) && (pauseCtx->unk_1E4 == 0)) {
|
||||||
if (CVar_GetS32("gMaskSelect", 0) && (gSaveContext.eventChkInf[8] & 0x8000) &&
|
// only allow mask select when:
|
||||||
cursorSlot == SLOT_TRADE_CHILD && CHECK_BTN_ALL(input->press.button, BTN_A)) {
|
// the shop is open (zelda's letter check): gSaveContext.eventChkInf[4] & 1
|
||||||
|
// and the mask quest is complete: gSaveContext.eventChkInf[8] & 0x8000
|
||||||
|
if (CVar_GetS32("gMaskSelect", 0) &&
|
||||||
|
(gSaveContext.eventChkInf[8] & 0x8000) &&
|
||||||
|
cursorSlot == SLOT_TRADE_CHILD && CHECK_BTN_ALL(input->press.button, BTN_A) &&
|
||||||
|
(gSaveContext.eventChkInf[4] & 1)) {
|
||||||
Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
Audio_PlaySoundGeneral(NA_SE_SY_DECIDE, &D_801333D4, 4, &D_801333E0, &D_801333E0, &D_801333E8);
|
||||||
gSelectingMask = !gSelectingMask;
|
gSelectingMask = !gSelectingMask;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user