diff --git a/src/TableData.cpp b/src/TableData.cpp index f6367f3..dbcac61 100644 --- a/src/TableData.cpp +++ b/src/TableData.cpp @@ -37,6 +37,7 @@ void TableData::init() { // read file into json inFile >> npcData; + npcData = npcData["NPCs"]; for (nlohmann::json::iterator _npc = npcData.begin(); _npc != npcData.end(); _npc++) { auto npc = _npc.value(); int instanceID = npc.find("mapNum") == npc.end() ? INSTANCE_OVERWORLD : (int)npc["mapNum"]; @@ -201,6 +202,7 @@ void TableData::init() { // read file into json inFile >> npcData; + npcData = npcData["mobs"]; int leaderMob = -1; int leaderMobFollowers = 0; diff --git a/tdata b/tdata index 68aa9e0..29b4f6a 160000 --- a/tdata +++ b/tdata @@ -1 +1 @@ -Subproject commit 68aa9e087131a0effc8548233a19bc49b518e48b +Subproject commit 29b4f6afd644840f03eb9b1cba91a183af4fc9f3