altered event drop logic, fixed taro/fm logic

This commit is contained in:
FinnHornhoover
2021-04-04 03:45:57 -07:00
committed by Gent Semaj
parent 44fd66b511
commit 4eaf3b2f08
4 changed files with 79 additions and 104 deletions

View File

@@ -274,6 +274,14 @@ static void loadDrops() {
};
}
// Events
nlohmann::json events = dropData["Events"];
for (nlohmann::json::iterator _event = events.begin(); _event != events.end(); _event++) {
auto event = _event.value();
Items::EventToDropMap[(int)event["EventID"]] = (int)event["MobDropID"];
}
// Mobs
nlohmann::json mobs = dropData["Mobs"];
for (nlohmann::json::iterator _mob = mobs.begin(); _mob != mobs.end(); _mob++) {