Skip to content

Commit

Permalink
that should work now
Browse files Browse the repository at this point in the history
  • Loading branch information
stevinus73 committed Dec 27, 2024
1 parent b0baa47 commit 4fc50dd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/engine/constructs.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,20 @@ var Process = function(en) {
})
en.saveCallback(function() {
upgrade_engine.upgradeQueue.forEach(function(up) {
en.setVar("moddedUpUl"+up.id, up.me.unlocked);
en.setVar("moddedUpB"+up.id, up.me.bought);
en.setVar("moddedUpUl"+up.me.id, up.me.unlocked);
en.setVar("moddedUpB"+up.me.id, up.me.bought);
})
achiev_engine.achievementQueue.forEach(function(achiev) {
en.setVar("moddedAchW"+achiev.id, achiev.me.won);
en.setVar("moddedAchW"+achiev.me.id, achiev.me.won);
})
})
en.loadCallback(function() {
upgrade_engine.upgradeQueue.forEach(function(up) {
up.me.unlocked = en.getVar("moddedUpUl"+up.id, up.me.unlocked);
up.me.bought = en.getVar("moddedUpB"+up.id, up.me.bought);
up.me.unlocked = en.getVar("moddedUpUl"+up.me.id, up.me.unlocked);
up.me.bought = en.getVar("moddedUpB"+up.me.id, up.me.bought);
})
achiev_engine.achievementQueue.forEach(function(achiev) {
achiev.me.won = en.getVar("moddedAchW"+achiev.id, achiev.me.won);
achiev.me.won = en.getVar("moddedAchW"+achiev.me.id, achiev.me.won);
})
})
LocalizeUpgradesAndAchievs();
Expand Down

0 comments on commit 4fc50dd

Please sign in to comment.