Fixing bugs, change dialogue translations

This commit is contained in:
Vladislav Khorev committed 2026-07-15 14:28:31 +03:00
1 parent ca73148f4b
commit 9f17d51fc8
12 files changed
+50 -809

No files matched your search

+2
View File
@@ -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>();