diff --git a/game.js b/game.js index 9c69e55..0a263d8 100644 --- a/game.js +++ b/game.js @@ -1146,8 +1146,7 @@ function updateRates() { // Swarm Protocol: buildings auto-code based on click power if (G.swarmFlag === 1) { const totalBuildings = Object.values(G.buildings).reduce((a, b) => a + b, 0); - // Compute click power using snapshot boost to avoid debuff mutation - const _clickPower = (1 + Math.floor(G.buildings.autocoder * 0.5) + Math.max(0, (G.phase - 1)) * 2) * _codeBoost; + const _clickPower = getClickPower(); G.swarmRate = totalBuildings * _clickPower; G.codeRate += G.swarmRate; }