From 9534eb7c2f7179b61b2362f236225a3be11dc7b6 Mon Sep 17 00:00:00 2001 From: 1brucben <1benjbruce@gmail.com> Date: Fri, 27 Jun 2025 16:43:08 +0200 Subject: [PATCH 1/3] initialize investment reduce productivity when nuked update news modal adjust investment adjustproductivity balance fix productivity growth adjust again nerf investment reduce default gold --- resources/lang/en.json | 1 + src/client/NewsModal.ts | 39 +++++------- src/client/Transport.ts | 15 +++++ src/client/graphics/GameRenderer.ts | 5 +- src/client/graphics/UIState.ts | 1 + src/client/graphics/layers/ControlPanel.ts | 60 ++++++++++++++++++- .../graphics/layers/PlayerInfoOverlay.ts | 7 +++ src/core/Schemas.ts | 8 +++ src/core/configuration/DefaultConfig.ts | 20 ++++++- src/core/execution/BotExecution.ts | 1 + src/core/execution/ExecutionManager.ts | 3 + src/core/execution/FakeHumanExecution.ts | 6 ++ src/core/execution/NukeExecution.ts | 4 ++ src/core/execution/PlayerExecution.ts | 2 +- .../execution/SetInvestmentRateExecution.ts | 31 ++++++++++ src/core/game/Game.ts | 6 ++ src/core/game/GameUpdates.ts | 3 + src/core/game/GameView.ts | 10 +++- src/core/game/PlayerImpl.ts | 58 +++++++++++++++++- 19 files changed, 251 insertions(+), 29 deletions(-) create mode 100644 src/core/execution/SetInvestmentRateExecution.ts diff --git a/resources/lang/en.json b/resources/lang/en.json index b83369383..d48a89c1e 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -402,6 +402,7 @@ "d_troops": "Defending troops", "a_troops": "Attacking troops", "gold": "Gold", + "productivity": "Productivity", "ports": "Ports", "cities": "Cities", "hospitals": "Hospitals", diff --git a/src/client/NewsModal.ts b/src/client/NewsModal.ts index 81db0b235..c8057e752 100644 --- a/src/client/NewsModal.ts +++ b/src/client/NewsModal.ts @@ -51,33 +51,26 @@ export class NewsModal extends LitElement {
- This test version introduces a new building: - Hospitals. Each hospital restores some of - your troop losses from both offensive and defensive combat. - The restored troops are displayed next to your population - growth count in your control panel. + This test version introduces a new mechanic: + Investment.
- The first hospital provides a - 10% reduction in combat casualties. Each - additional hospital reduces losses by - 75% of the previous reduction. + A new Investment Slider lets you dedicate a + portion of your nation's gold to productivity growth. Gold + spent on investment is subtracted before any other expenses.
-These effects stack cumulatively.
- For a full list of changes, join the - - Discord . + The more you invest, the faster your + worker productivity increases—boosting your + long-term gold income. Productivity grows gradually and + compounds over time, meaning consistent investment can lead to + a powerful economic advantage. +
++ Nuclear strikes now reduce productivity + proportionally to the number of tiles you lose. This creates + longer-term economic damage beyond just troop and worker + losses.