File tree Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ motd=Welcome to OpenFusion!
2828npcdata =data/NPCs.json
2929# warp target json data
3030warpdata =data/warps.json
31+ # mob json
32+ mobdata =data/mobs.json
3133# is everyone a GM?
3234gm =true
3335
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ void NPCManager::init() {
4545
4646 // load temporary mob dump
4747 try {
48- std::ifstream inFile (" data/mobs.json " ); // not in settings, since it's temp
48+ std::ifstream inFile (settings::MOBJSON ); // not in settings, since it's temp
4949 nlohmann::json npcData;
5050
5151 // read file into json
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ int settings::SPAWN_Z = -4210;
2121std::string settings::GMPASS = " pass" ;
2222std::string settings::NPCJSON = " data/NPCs.json" ;
2323std::string settings::WARPJSON = " data/warps.json" ;
24+ std::string settings::MOBJSON = " data/mobs.json" ;
2425std::string settings::MOTDSTRING = " Welcome to OpenFusion!" ;
2526bool settings::GM = false ;
2627
@@ -50,6 +51,7 @@ void settings::init() {
5051 GMPASS = reader.Get (" login" , " pass" , GMPASS);
5152 NPCJSON = reader.Get (" shard" , " npcdata" , NPCJSON);
5253 WARPJSON = reader.Get (" shard" , " warpdata" , WARPJSON);
54+ MOBJSON = reader.Get (" shard" , " mobdata" , MOBJSON);
5355 MOTDSTRING = reader.Get (" shard" , " motd" , MOTDSTRING);
5456 GM = reader.GetBoolean (" shard" , " gm" , GM);
5557}
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ namespace settings {
1515 extern std::string MOTDSTRING;
1616 extern std::string NPCJSON;
1717 extern std::string WARPJSON;
18+ extern std::string MOBJSON;
1819 extern std::string GMPASS;
1920 extern bool GM;
2021
You can’t perform that action at this time.
0 commit comments