mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-24 07:05:34 -07:00
Merge pull request #1350 from leggettc18/rando-next-key-fix
Fixed small key case that was behind an else and shouldn't have been
This commit is contained in:
commit
22f67cb258
1 changed files with 6 additions and 7 deletions
|
@ -1711,14 +1711,13 @@ u8 Item_Give(GlobalContext* globalCtx, u8 item) {
|
||||||
return ITEM_NONE;
|
return ITEM_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if (gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex] < 0) {
|
||||||
|
gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex] = 1;
|
||||||
|
return ITEM_NONE;
|
||||||
} else {
|
} else {
|
||||||
if (gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex] < 0) {
|
gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex]++;
|
||||||
gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex] = 1;
|
return ITEM_NONE;
|
||||||
return ITEM_NONE;
|
|
||||||
} else {
|
|
||||||
gSaveContext.inventory.dungeonKeys[gSaveContext.mapIndex]++;
|
|
||||||
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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue