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