From efffa8940bc02ec8ca8d2e29ea109763204fa00e Mon Sep 17 00:00:00 2001 From: MrYawnie Date: Fri, 17 Jul 2020 16:11:22 +1000 Subject: [PATCH 1/2] Match belt/processor etc. level to upgrade tiers Currently the belt (+ processor) levels do not match to the upgrade shop tiers. The tiers start from Tier 1, and once upgraded, they go to tier 2, 3, ... 7. So tier 7 is currently the highest. However, the belt level starts from level 0, and increases to level 1 once upgraded. The maximum level is therefore 6. This PR raises the start level of belts and other items to level 1, meaning the levels match the upgrade tiers in the shop. --- src/js/game/hud/parts/sandbox_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/game/hud/parts/sandbox_controller.js b/src/js/game/hud/parts/sandbox_controller.js index 6bf277bb..a0963a7c 100644 --- a/src/js/game/hud/parts/sandbox_controller.js +++ b/src/js/game/hud/parts/sandbox_controller.js @@ -105,7 +105,7 @@ export class HUDSandboxController extends BaseHUDPart { this.root.hubGoals.upgradeImprovements[id] = improvement; this.root.signals.upgradePurchased.dispatch(id); this.root.hud.signals.notification.dispatch( - "Upgrade '" + id + "' is now at level " + this.root.hubGoals.upgradeLevels[id], + "Upgrade '" + id + "' is now at level " + (this.root.hubGoals.upgradeLevels[id] + 1), enumNotificationType.upgrade ); } From 68ebf0705297c527d3db8b28ac090eea60c8e5a2 Mon Sep 17 00:00:00 2001 From: MrYawnie Date: Sat, 18 Jul 2020 17:41:16 +1000 Subject: [PATCH 2/2] Changed "level" to "tier" for consistency --- src/js/game/hud/parts/sandbox_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/game/hud/parts/sandbox_controller.js b/src/js/game/hud/parts/sandbox_controller.js index a0963a7c..04773019 100644 --- a/src/js/game/hud/parts/sandbox_controller.js +++ b/src/js/game/hud/parts/sandbox_controller.js @@ -105,7 +105,7 @@ export class HUDSandboxController extends BaseHUDPart { this.root.hubGoals.upgradeImprovements[id] = improvement; this.root.signals.upgradePurchased.dispatch(id); this.root.hud.signals.notification.dispatch( - "Upgrade '" + id + "' is now at level " + (this.root.hubGoals.upgradeLevels[id] + 1), + "Upgrade '" + id + "' is now at tier " + (this.root.hubGoals.upgradeLevels[id] + 1), enumNotificationType.upgrade ); }