Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions js/mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,25 @@ function adjustNotificationTime(diff) {
activeNotifications.splice(notification,1); // Remove notification when time hits 0
}
}
}

function fixOldSave(oldVersion){
if(oldVersion=="1.2"||oldVersion=="1.1"||oldVersion=="1.0"){
player.en.first=player.timePlayed
player.ne.first=player.timePlayed
player.id.first=player.timePlayed
player.r.first=player.timePlayed
player.ai.first=player.timePlayed
player.c.first=player.timePlayed
}
if(oldVersion=="1.1"||oldVersion=="1.0"){
player.ma.first=player.timePlayed
player.ge.first=player.timePlayed
player.mc.first=player.timePlayed
}
if(oldVersion=="1.0"){
player.n.first=player.timePlayed
player.hs.first=player.timePlayed
player.i.first=player.timePlayed
}
}
5 changes: 4 additions & 1 deletion js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,10 @@ function versionCheck() {
}

if (setVersion) {
if (player.versionType == modInfo.id && VERSION.num > player.version) player.keepGoing = false
if (player.versionType == modInfo.id && VERSION.num > player.version) {
player.keepGoing = false
if (fixOldSave) fixOldSave(player.version);
}
player.versionType = getStartPlayer().versionType
player.version = VERSION.num
player.beta = VERSION.beta
Expand Down