Reset tricks on AP parse
This commit is contained in:
@@ -437,6 +437,7 @@ void Context::ParseArchipelago() {
|
||||
ArchipelagoClient& apClient = ArchipelagoClient::GetInstance();
|
||||
ParseArchipelagoItemsLocations(apClient.GetScoutedItems());
|
||||
ParseArchipelagoOptions();
|
||||
ParseArchipelagoTricks();
|
||||
mEntranceShuffler->UnshuffleAllEntrances();
|
||||
mDungeons->ResetAllDungeons();
|
||||
mTrials->RemoveAllTrials();
|
||||
@@ -750,6 +751,13 @@ void Context::ParseArchipelagoOptions() {
|
||||
mOptions[RSK_SHUFFLE_TREES].Set(slotData["shuffle_trees"]);
|
||||
}
|
||||
|
||||
void Context::ParseArchipelagoTricks() {
|
||||
Context::ResetTrickOptions();
|
||||
|
||||
// TODO: Implement trick parsing from slot data
|
||||
// See Context::ParseTricksJson for more info
|
||||
}
|
||||
|
||||
void Context::ParseArchipelagoItemsLocations(const std::vector<ArchipelagoClient::ApItem>& scouted_items) {
|
||||
const std::string SlotName = ArchipelagoClient::GetInstance().GetSlotName();
|
||||
nlohmann::json slotData = ArchipelagoClient::GetInstance().GetSlotData();
|
||||
|
||||
@@ -138,6 +138,7 @@ class Context {
|
||||
|
||||
void ParseArchipelago();
|
||||
void ParseArchipelagoOptions();
|
||||
void ParseArchipelagoTricks();
|
||||
void ParseArchipelagoItemsLocations(const std::vector<ArchipelagoClient::ApItem>& slot_data);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user