Browse Source

Fix level of farm to max 10;

master
Nero Ignis 4 years ago
parent
commit
1f934d727c
  1. 6
      js/app.js

6
js/app.js

@ -170,7 +170,7 @@ let game = new Vue({
resource: 'corn', resource: 'corn',
icon: 'medieval_farm', icon: 'medieval_farm',
level: 0, level: 0,
maxLevel: 25, maxLevel: 10,
isOwned: false, isOwned: false,
isUpgradeable: true, isUpgradeable: true,
amount: 5, amount: 5,
@ -243,6 +243,10 @@ let game = new Vue({
if (building.hasMissingResources) { if (building.hasMissingResources) {
building.loader = 100; building.loader = 100;
} }
if (building.level > building.maxLevel) {
building.level = building.maxLevel;
}
}); });
this.buildings = savedBuildings; this.buildings = savedBuildings;

Loading…
Cancel
Save