mirror of
https://github.com/wassname/cardsforscience.git
synced 2026-09-09 11:19:16 +08:00
Track the gameplay time of achievements
This commit is contained in:
+2
-5
@@ -40,11 +40,8 @@ var Game = (function() {
|
||||
function(w) { return makeGameObject(GameObjects.Worker, w); });
|
||||
this.upgrades = this.upgrades.map(
|
||||
function(u) { return makeGameObject(GameObjects.Upgrade, u); });
|
||||
this.achievements = this.achievements.map(function(a) {
|
||||
var _a = makeGameObject(GameObjects.Achievement, a);
|
||||
_a.setRefAllGameObjects(_this.allObjects);
|
||||
return _a;
|
||||
});
|
||||
this.achievements = this.achievements.map(
|
||||
function(a) { return makeGameObject(GameObjects.Achievement, a); });
|
||||
// Load states from local store
|
||||
for (var key in this.allObjects) {
|
||||
var o = this.allObjects[key];
|
||||
|
||||
Reference in New Issue
Block a user