diff --git a/src/js/game/map.js b/src/js/game/map.js index 8edff48b..c59341b9 100644 --- a/src/js/game/map.js +++ b/src/js/game/map.js @@ -16,6 +16,8 @@ export class BaseMap extends BasicSerializableObject { return { seed: types.uint, allowNonPrimaryColors: types.bool, + fullShapePercentage: types.uint, + wierdShapePercentage: types.uint, }; } @@ -29,6 +31,8 @@ export class BaseMap extends BasicSerializableObject { this.seed = 0; this.allowNonPrimaryColors = false; + this.fullShapePercentage = 0; + this.wierdShapePercentage = 0; /** * Mapping of 'X|Y' to chunk diff --git a/src/js/savegame/schemas/1010.js b/src/js/savegame/schemas/1010.js index e1917581..56cca297 100644 --- a/src/js/savegame/schemas/1010.js +++ b/src/js/savegame/schemas/1010.js @@ -26,5 +26,13 @@ export class SavegameInterface_V1010 extends SavegameInterface_V1009 { if (!dump.map.hasOwnProperty("allowNonPrimaryColors")) { dump.map.allowNonPrimaryColors = false; } + + if (!dump.map.hasOwnProperty("fullShapePercentage")) { + dump.map.fullShapePercentage = 0; + } + + if (!dump.map.hasOwnProperty("wierdShapePercentage")) { + dump.map.wierdShapePercentage = 0; + } } }