Browse Source

Version 19: Store Starting Character

Stephan Fuchs 8 months ago
parent
commit
7eb9a67f58
2 changed files with 5 additions and 1 deletions
  1. 4 0
      sugarcube/src/VersionUpdater.js
  2. 1 1
      sugarcube/src/version.js

+ 4 - 0
sugarcube/src/VersionUpdater.js

@@ -50,6 +50,10 @@ setup.versionUpdate = function(fromVersion,variables=null){
 		variables.phone = new setup.Phone();
 		variables.time._timedEvents = {_system:{nextId:0},events:{}};
 	}
+
+	if(fromVersion < 19){
+		variables.startCharacter = 'sg_starting_category';	//Not very accurate, but good enough
+	}
 	
 
     variables.version = Config.saves.version;

+ 1 - 1
sugarcube/src/version.js

@@ -1,4 +1,4 @@
-Config.saves.version = 18;
+Config.saves.version = 19;
 
 Macro.add('version', {
 	skipArgs : true,