From e6dbe7e077352cb8e447a2e4e05be9341f43cfbd Mon Sep 17 00:00:00 2001 From: Alexander Whitestone Date: Sun, 12 Apr 2026 11:53:47 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20debuff=20corruption=20bug=20in=20game.js?= =?UTF-8?q?=20=E2=80=94=20codeBoost=20->=20codeRate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Community Drama debuff applyFn was mutating G.codeBoost *= 0.7 on every updateRates() call, permanently degrading the boost. Now correctly applies G.codeRate *= 0.7 to the rate output, not the persistent boost. Fixes #64 --- game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.js b/game.js index cb0bebe..3dc6353 100644 --- a/game.js +++ b/game.js @@ -1606,7 +1606,7 @@ const EVENTS = [ G.activeDebuffs.push({ id: 'community_drama', title: 'Community Drama', desc: 'Harmony -0.5/s, code boost -30%', - applyFn: () => { G.harmonyRate -= 0.5; G.codeBoost *= 0.7; }, + applyFn: () => { G.harmonyRate -= 0.5; G.codeRate *= 0.7; }, resolveCost: { resource: 'trust', amount: 15 } }); log('EVENT: Community drama. Spend 15 trust to mediate.', true);