Merge branch 'dev' into breaking-contract-capitalization

This commit is contained in:
hydroflame
2022-04-26 11:15:37 -04:00
committed by GitHub
62 changed files with 1557 additions and 471 deletions
+3
View File
@@ -24,6 +24,8 @@ import { SxProps } from "@mui/system";
import { PlayerObject } from "./PersonObjects/Player/PlayerObject";
import { pushGameSaved } from "./Electron";
import { defaultMonacoTheme } from "./ScriptEditor/ui/themes";
import { FactionNames } from "./Faction/data/FactionNames";
import { Faction } from "./Faction/Faction";
/* SaveObject.js
* Defines the object used to save/load games
@@ -400,6 +402,7 @@ function evaluateVersionCompatibility(ver: string | number): void {
}
//Fix contract names
if (ver < 16) {
Factions[FactionNames.ShadowsOfAnarchy] = new Faction(FactionNames.ShadowsOfAnarchy);
//Iterate over all contracts on all servers
for (const server of GetAllServers()) {
for (const contract of server.contracts) {