Add Xerneas, Yveltal, and Eternatus
This commit is contained in:
1 parent
3e2ba0020c
commit
55ba3cd5e7
29 files changed
+90125
-452
No files matched your search
@@ -51,8 +51,8 @@ export class GameData {
|
||||
this.scene = scene;
|
||||
this.trainerId = Utils.randInt(65536);
|
||||
this.secretId = Utils.randInt(65536);
|
||||
if (!this.load())
|
||||
this.initDexData();
|
||||
this.initDexData();
|
||||
this.load();
|
||||
}
|
||||
|
||||
private save(): boolean {
|
||||
@@ -80,11 +80,12 @@ export class GameData {
|
||||
|
||||
this.trainerId = data.trainerId;
|
||||
this.secretId = data.secretId;
|
||||
this.dexData = data.dexData;
|
||||
|
||||
if (data.timestamp === undefined)
|
||||
this.convertDexData(data.dexData);
|
||||
|
||||
this.dexData = Object.assign(this.dexData, data.dexData);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user