diff --git a/js/app.js b/js/app.js index ca35544..98a8fd8 100644 --- a/js/app.js +++ b/js/app.js @@ -170,7 +170,7 @@ let game = new Vue({ resource: 'corn', icon: 'medieval_farm', level: 0, - maxLevel: 25, + maxLevel: 10, isOwned: false, isUpgradeable: true, amount: 5, @@ -243,6 +243,10 @@ let game = new Vue({ if (building.hasMissingResources) { building.loader = 100; } + + if (building.level > building.maxLevel) { + building.level = building.maxLevel; + } }); this.buildings = savedBuildings;