fix: debuff corruption bug in game.js — codeBoost -> codeRate
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
This commit is contained in:
2
game.js
2
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);
|
||||
|
||||
Reference in New Issue
Block a user