Fixed recieving items from chests
This commit is contained in:
@@ -485,15 +485,13 @@ void Context::ParseArchipelagoItemsLocations(const std::vector<ArchipelagoClient
|
||||
|
||||
// init the item table with regular items first
|
||||
for(int rc = 1; rc <= RC_MAX; rc++) {
|
||||
itemLocationTable[rc].SetPlacedItem(StaticData::GetLocation(static_cast<RandomizerCheck>(rc))->GetVanillaItem());
|
||||
// This may not even be needed
|
||||
const RandomizerGet vanillaItem = StaticData::GetLocation(static_cast<RandomizerCheck>(rc))->GetVanillaItem();
|
||||
itemLocationTable[rc].SetPlacedItem(vanillaItem);
|
||||
}
|
||||
|
||||
for(const ArchipelagoClient::ApItem& ap_item: scouted_items) {
|
||||
const RandomizerCheck rc = StaticData::APcheckToSoh.find(ap_item.locationName)->second;
|
||||
|
||||
if(rc == RC_KF_MIDOS_TOP_RIGHT_CHEST) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if(SlotName == ap_item.playerName) {
|
||||
// our item
|
||||
|
||||
@@ -312,8 +312,7 @@ void RandomizerOnPlayerUpdateForRCQueueHandler() {
|
||||
} else {
|
||||
RandomizerGet vanillaRandomizerGet = Rando::StaticData::GetLocation(rc)->GetVanillaItem();
|
||||
GetItemID vanillaItem = (GetItemID)Rando::StaticData::RetrieveItem(vanillaRandomizerGet).GetItemID();
|
||||
GetItemEntry getItemEntry =
|
||||
Rando::Context::GetInstance()->GetFinalGIEntry(rc, true, (GetItemID)vanillaRandomizerGet);
|
||||
getItemEntry = Rando::Context::GetInstance()->GetFinalGIEntry(rc, true, (GetItemID)vanillaRandomizerGet);
|
||||
}
|
||||
SPDLOG_TRACE("RC found!");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user