mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-02-23 06:02:08 -05:00
Readds missing workaround for spirit temple and ganon's castle keys.
This commit is contained in:
parent
b9aee7085e
commit
99674ff88c
@ -1690,6 +1690,28 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
|||||||
}
|
}
|
||||||
return ITEM_NONE;
|
return ITEM_NONE;
|
||||||
} else if (item == ITEM_KEY_SMALL) {
|
} else if (item == ITEM_KEY_SMALL) {
|
||||||
|
// Small key exceptions for rando with keysanity off.
|
||||||
|
if (gSaveContext.n64ddFlag) {
|
||||||
|
if (globalCtx->sceneNum == 10) { // ganon's tower -> ganon's castle
|
||||||
|
if (gSaveContext.inventory.dungeonKeys[13] < 0) {
|
||||||
|
gSaveContext.inventory.dungeonKeys[13] = 1;
|
||||||
|
return ITEM_NONE;
|
||||||
|
} else {
|
||||||
|
gSaveContext.inventory.dungeonKeys[13]++;
|
||||||
|
return ITEM_NONE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (globalCtx->sceneNum == 92) { // Desert Colossus -> Spirit Temple.
|
||||||
|
if (gSaveContext.inventory.dungeonKeys[6] < 0) {
|
||||||
|
gSaveContext.inventory.dungeonKeys[6] = 1;
|
||||||
|
return ITEM_NONE;
|
||||||
|
} else {
|
||||||
|
gSaveContext.inventory.dungeonKeys[6]++;
|
||||||
|
return ITEM_NONE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
if (gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex] < 0) {
|
if (gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex] < 0) {
|
||||||
gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex] = 1;
|
gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex] = 1;
|
||||||
return ITEM_NONE;
|
return ITEM_NONE;
|
||||||
@ -1697,6 +1719,7 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
|||||||
gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex]++;
|
gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex]++;
|
||||||
return ITEM_NONE;
|
return ITEM_NONE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if ((item == ITEM_QUIVER_30) || (item == ITEM_BOW)) {
|
} else if ((item == ITEM_QUIVER_30) || (item == ITEM_BOW)) {
|
||||||
if (CUR_UPG_VALUE(UPG_QUIVER) == 0) {
|
if (CUR_UPG_VALUE(UPG_QUIVER) == 0) {
|
||||||
Inventory_ChangeUpgrade(UPG_QUIVER, 1);
|
Inventory_ChangeUpgrade(UPG_QUIVER, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user