Implement Nano capsules

This commit is contained in:
Kamil
2020-12-16 16:27:18 +01:00
committed by Gent S
parent fcdea2e723
commit a74c9be2ff
3 changed files with 86 additions and 8 deletions

View File

@@ -570,6 +570,15 @@ void TableData::loadDrops() {
itemCount++;
}
#ifdef ACADEMY
nlohmann::json capsules = dropData["NanoCapsules"];
for (nlohmann::json::iterator _capsule = capsules.begin(); _capsule != capsules.end(); _capsule++) {
auto capsule = _capsule.value();
ItemManager::NanoCapsules[(int)capsule["Crate"]] = (int)capsule["Nano"];
}
#endif
std::cout << "[INFO] Loaded " << ItemManager::Crates.size() << " Crates containing "
<< itemCount << " items" << std::endl;