mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-06 11:28:12 -05:00
fix freestanding tracking (#4782)
This commit is contained in:
parent
4c6a2a4b64
commit
396e2fd5ff
@ -535,8 +535,6 @@ static void PlaceVanillaDekuScrubItems(bool junkOneTimeScrubs) {
|
|||||||
ctx->PlaceItemInLocation(RC_GANONS_CASTLE_DEKU_SCRUB_RIGHT, RG_RED_POTION_REFILL, false, true);
|
ctx->PlaceItemInLocation(RC_GANONS_CASTLE_DEKU_SCRUB_RIGHT, RG_RED_POTION_REFILL, false, true);
|
||||||
ctx->PlaceItemInLocation(RC_GANONS_CASTLE_DEKU_SCRUB_LEFT, RG_GREEN_POTION_REFILL, false, true);
|
ctx->PlaceItemInLocation(RC_GANONS_CASTLE_DEKU_SCRUB_LEFT, RG_GREEN_POTION_REFILL, false, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void PlaceVanillaMapsAndCompasses() {
|
static void PlaceVanillaMapsAndCompasses() {
|
||||||
@ -1251,7 +1249,7 @@ void GenerateItemPool() {
|
|||||||
//Overworld Scrubs
|
//Overworld Scrubs
|
||||||
AddItemsToPool(ItemPool, dekuScrubItems);
|
AddItemsToPool(ItemPool, dekuScrubItems);
|
||||||
|
|
||||||
//I'm not sure what this is for, but it was in ootr so I copied it
|
//Scrubs which sell seeds or arrows sell it based on age, this randomly assigns them
|
||||||
for (uint8_t i = 0; i < 7; i++) {
|
for (uint8_t i = 0; i < 7; i++) {
|
||||||
if (Random(0, 3)) {
|
if (Random(0, 3)) {
|
||||||
AddItemToMainPool(RG_ARROWS_30);
|
AddItemToMainPool(RG_ARROWS_30);
|
||||||
|
@ -163,6 +163,12 @@ void RandomizerCheckObjects::UpdateImGuiVisibility() {
|
|||||||
RandomizerCheckObjects::AreaIsOverworld(location.GetArea())) ||
|
RandomizerCheckObjects::AreaIsOverworld(location.GetArea())) ||
|
||||||
((CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleTokens"), RO_TOKENSANITY_OFF) == RO_TOKENSANITY_DUNGEONS) &&
|
((CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleTokens"), RO_TOKENSANITY_OFF) == RO_TOKENSANITY_DUNGEONS) &&
|
||||||
RandomizerCheckObjects::AreaIsDungeon(location.GetArea()))) &&
|
RandomizerCheckObjects::AreaIsDungeon(location.GetArea()))) &&
|
||||||
|
(location.GetRCType() != RCTYPE_FREESTANDING ||
|
||||||
|
(CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleFreestanding"), RO_FREESTANDING_OFF) == RO_FREESTANDING_ALL) ||
|
||||||
|
((CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleFreestanding"), RO_FREESTANDING_OFF) == RO_FREESTANDING_OVERWORLD) &&
|
||||||
|
RandomizerCheckObjects::AreaIsOverworld(location.GetArea())) ||
|
||||||
|
((CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleFreestanding"), RO_FREESTANDING_OFF) == RO_FREESTANDING_DUNGEONS) &&
|
||||||
|
RandomizerCheckObjects::AreaIsDungeon(location.GetArea()))) &&
|
||||||
(location.GetRCType() != RCTYPE_BEEHIVE || CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleBeehives"), RO_GENERIC_NO)) &&
|
(location.GetRCType() != RCTYPE_BEEHIVE || CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleBeehives"), RO_GENERIC_NO)) &&
|
||||||
(location.GetRCType() != RCTYPE_COW || CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleCows"), RO_GENERIC_NO)) &&
|
(location.GetRCType() != RCTYPE_COW || CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShuffleCows"), RO_GENERIC_NO)) &&
|
||||||
(location.GetRCType() != RCTYPE_POT || CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShufflePots"), RO_GENERIC_NO)) &&
|
(location.GetRCType() != RCTYPE_POT || CVarGetInteger(CVAR_RANDOMIZER_SETTING("ShufflePots"), RO_GENERIC_NO)) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user