mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-12-02 13:20:20 +00:00
Restructure tdata
This commit is contained in:
@@ -37,6 +37,7 @@ void TableData::init() {
|
|||||||
|
|
||||||
// read file into json
|
// read file into json
|
||||||
inFile >> npcData;
|
inFile >> npcData;
|
||||||
|
npcData = npcData["NPCs"];
|
||||||
for (nlohmann::json::iterator _npc = npcData.begin(); _npc != npcData.end(); _npc++) {
|
for (nlohmann::json::iterator _npc = npcData.begin(); _npc != npcData.end(); _npc++) {
|
||||||
auto npc = _npc.value();
|
auto npc = _npc.value();
|
||||||
int instanceID = npc.find("mapNum") == npc.end() ? INSTANCE_OVERWORLD : (int)npc["mapNum"];
|
int instanceID = npc.find("mapNum") == npc.end() ? INSTANCE_OVERWORLD : (int)npc["mapNum"];
|
||||||
@@ -201,6 +202,7 @@ void TableData::init() {
|
|||||||
|
|
||||||
// read file into json
|
// read file into json
|
||||||
inFile >> npcData;
|
inFile >> npcData;
|
||||||
|
npcData = npcData["mobs"];
|
||||||
int leaderMob = -1;
|
int leaderMob = -1;
|
||||||
int leaderMobFollowers = 0;
|
int leaderMobFollowers = 0;
|
||||||
|
|
||||||
|
|||||||
2
tdata
2
tdata
Submodule tdata updated: 68aa9e0871...29b4f6afd6
Reference in New Issue
Block a user