mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-28 12:22:20 -05:00
Fix Gift from Sages not showing in tracker (it's a valid shuffle now!). (#4556)
Bit of tracker code cleanup.
This commit is contained in:
parent
5dd3b39a83
commit
4850041943
@ -757,7 +757,7 @@ void CreateStaticHintFromData(RandomizerHint hint, StaticHintInfo staticData){
|
|||||||
//If we get to here then it means a location got through with no area assignment, which means something went wrong elsewhere.
|
//If we get to here then it means a location got through with no area assignment, which means something went wrong elsewhere.
|
||||||
SPDLOG_DEBUG("Attempted to hint location with no areas: ");
|
SPDLOG_DEBUG("Attempted to hint location with no areas: ");
|
||||||
SPDLOG_DEBUG(Rando::StaticData::GetLocation(loc)->GetName());
|
SPDLOG_DEBUG(Rando::StaticData::GetLocation(loc)->GetName());
|
||||||
assert(false);
|
//assert(false);
|
||||||
areas.push_back(RA_NONE);
|
areas.push_back(RA_NONE);
|
||||||
} else {
|
} else {
|
||||||
areas.push_back(ctx->GetItemLocation(loc)->GetRandomArea());
|
areas.push_back(ctx->GetItemLocation(loc)->GetRandomArea());
|
||||||
|
@ -34,8 +34,6 @@ extern std::vector<ItemTrackerItem> dungeonRewardMedallions;
|
|||||||
extern std::vector<ItemTrackerItem> songItems;
|
extern std::vector<ItemTrackerItem> songItems;
|
||||||
extern std::vector<ItemTrackerItem> equipmentItems;
|
extern std::vector<ItemTrackerItem> equipmentItems;
|
||||||
|
|
||||||
#define RCO_RAORU { RC_GIFT_FROM_SAGES, RCVORMQ_BOTH, RCTYPE_DUNGEON_REWARD, RCAREA_MARKET, ACTOR_ID_MAX, SCENE_ID_MAX, 0x00, GI_NONE, false, "Gift from Raoru", "Gift from Raoru", true };
|
|
||||||
|
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
|
|
||||||
namespace CheckTracker {
|
namespace CheckTracker {
|
||||||
@ -218,34 +216,6 @@ static ImGuiTextFilter checkSearch;
|
|||||||
std::array<bool, RCAREA_INVALID> filterAreasHidden = { 0 };
|
std::array<bool, RCAREA_INVALID> filterAreasHidden = { 0 };
|
||||||
std::array<bool, RC_MAX> filterChecksHidden = { 0 };
|
std::array<bool, RC_MAX> filterChecksHidden = { 0 };
|
||||||
|
|
||||||
void SongFromImpa() {
|
|
||||||
if (IS_RANDO) {
|
|
||||||
if (OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_SKIP_CHILD_ZELDA) == RO_GENERIC_ON && IS_RANDO) {
|
|
||||||
//if (gSaveContext.checkTrackerData[RC_SONG_FROM_IMPA].status != RCSHOW_SAVED) {
|
|
||||||
// gSaveContext.checkTrackerData[RC_SONG_FROM_IMPA].status = RCSHOW_SAVED;
|
|
||||||
//}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void GiftFromSages() {
|
|
||||||
if (!IS_RANDO) {
|
|
||||||
//DefaultCheckData(RC_GIFT_FROM_SAGES);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<RandomizerCheck> checks;
|
|
||||||
// Function for adding Link's Pocket check
|
|
||||||
void LinksPocket() {
|
|
||||||
/*if (IS_RANDO) {
|
|
||||||
if (OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_LINKS_POCKET) != RO_LINKS_POCKET_NOTHING ||
|
|
||||||
OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_SHUFFLE_DUNGEON_REWARDS) == RO_DUNGEON_REWARDS_END_OF_DUNGEON) {
|
|
||||||
DefaultCheckData(RC_LINKS_POCKET);
|
|
||||||
gSaveContext.checkTrackerData[RC_LINKS_POCKET].status = RCSHOW_SAVED;
|
|
||||||
}
|
|
||||||
}*/
|
|
||||||
}
|
|
||||||
|
|
||||||
void TrySetAreas() {
|
void TrySetAreas() {
|
||||||
if (checksByArea.empty()) {
|
if (checksByArea.empty()) {
|
||||||
for (int i = RCAREA_KOKIRI_FOREST; i < RCAREA_INVALID; i++) {
|
for (int i = RCAREA_KOKIRI_FOREST; i < RCAREA_INVALID; i++) {
|
||||||
@ -509,9 +479,6 @@ void CheckTrackerLoadGame(int32_t fileNum) {
|
|||||||
showVOrMQ = (OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_MQ_DUNGEON_RANDOM) == RO_MQ_DUNGEONS_RANDOM_NUMBER ||
|
showVOrMQ = (OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_MQ_DUNGEON_RANDOM) == RO_MQ_DUNGEONS_RANDOM_NUMBER ||
|
||||||
(OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_MQ_DUNGEON_RANDOM) == RO_MQ_DUNGEONS_SET_NUMBER &&
|
(OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_MQ_DUNGEON_RANDOM) == RO_MQ_DUNGEONS_SET_NUMBER &&
|
||||||
OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_MQ_DUNGEON_COUNT) < 12));
|
OTRGlobals::Instance->gRandomizer->GetRandoSettingValue(RSK_MQ_DUNGEON_COUNT) < 12));
|
||||||
LinksPocket();
|
|
||||||
SongFromImpa();
|
|
||||||
GiftFromSages();
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
UpdateAllOrdering();
|
UpdateAllOrdering();
|
||||||
UpdateInventoryChecks();
|
UpdateInventoryChecks();
|
||||||
@ -1256,7 +1223,6 @@ bool IsCheckShuffled(RandomizerCheck rc) {
|
|||||||
(loc->GetRCType() != RCTYPE_SHOP ||
|
(loc->GetRCType() != RCTYPE_SHOP ||
|
||||||
(showShops && OTRGlobals::Instance->gRandomizer->IdentifyShopItem(loc->GetScene(), loc->GetActorParams() + 1).enGirlAShopItem == 50)) &&
|
(showShops && OTRGlobals::Instance->gRandomizer->IdentifyShopItem(loc->GetScene(), loc->GetActorParams() + 1).enGirlAShopItem == 50)) &&
|
||||||
(rc != RC_TRIFORCE_COMPLETED || !hideTriforceCompleted) &&
|
(rc != RC_TRIFORCE_COMPLETED || !hideTriforceCompleted) &&
|
||||||
(rc != RC_GIFT_FROM_SAGES || !IS_RANDO) &&
|
|
||||||
(loc->GetRCType() != RCTYPE_SCRUB ||
|
(loc->GetRCType() != RCTYPE_SCRUB ||
|
||||||
showScrubs ||
|
showScrubs ||
|
||||||
(showMajorScrubs && (rc == RC_LW_DEKU_SCRUB_NEAR_BRIDGE || // The 3 scrubs that are always randomized
|
(showMajorScrubs && (rc == RC_LW_DEKU_SCRUB_NEAR_BRIDGE || // The 3 scrubs that are always randomized
|
||||||
|
Loading…
Reference in New Issue
Block a user