Fixing bugs, change dialogue translations
This commit is contained in:
1 parent
ca73148f4b
commit
9f17d51fc8
12 files changed
+50
-809
No files matched your search
@@ -95,10 +95,12 @@ void GameState::load(const nlohmann::json& in)
|
||||
money = in.value("money", money);
|
||||
|
||||
// --- Script globals ---
|
||||
globalInts.clear();
|
||||
if (in.contains("globalInts") && in["globalInts"].is_object()) {
|
||||
for (const auto& [k, v] : in["globalInts"].items())
|
||||
globalInts[k] = v.get<int>();
|
||||
}
|
||||
globalFloats.clear();
|
||||
if (in.contains("globalFloats") && in["globalFloats"].is_object()) {
|
||||
for (const auto& [k, v] : in["globalFloats"].items())
|
||||
globalFloats[k] = v.get<float>();
|
||||
|
||||
Reference in new issue
Block a user