diff --git a/js/engine.js b/js/engine.js index 42d8662..7ef75f8 100644 --- a/js/engine.js +++ b/js/engine.js @@ -169,6 +169,7 @@ function tick() { } G.tick += dt; + G.playTime += dt; // Sprint ability tickSprint(dt); @@ -514,8 +515,8 @@ const EVENTS = [ if (G.activeDebuffs.find(d => d.id === 'community_drama')) return; 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; }, + desc: 'Harmony -0.5/s, code production -30%', + applyFn: () => { G.harmonyRate -= 0.5; G.codeRate *= 0.7; }, resolveCost: { resource: 'trust', amount: 15 } }); log('EVENT: Community drama. Spend 15 trust to mediate.', true); diff --git a/js/render.js b/js/render.js index 9080611..c6ac3c2 100644 --- a/js/render.js +++ b/js/render.js @@ -161,6 +161,7 @@ function saveGame() { activeDebuffIds: debuffIds, totalEventsResolved: G.totalEventsResolved || 0, buyAmount: G.buyAmount || 1, + playTime: G.playTime || 0, sprintActive: G.sprintActive || false, sprintTimer: G.sprintTimer || 0, sprintCooldown: G.sprintCooldown || 0, @@ -195,7 +196,7 @@ function loadGame() { 'memoryFlag', 'pactFlag', 'lazarusFlag', 'mempalaceFlag', 'ciFlag', 'branchProtectionFlag', 'nightlyWatchFlag', 'nostrFlag', 'milestones', 'completedProjects', 'activeProjects', - 'totalClicks', 'startedAt', 'flags', 'rescues', 'totalRescues', + 'totalClicks', 'startedAt', 'playTime', 'flags', 'rescues', 'totalRescues', 'drift', 'driftEnding', 'beaconEnding', 'pendingAlignment', 'lastEventAt', 'totalEventsResolved', 'buyAmount', 'sprintActive', 'sprintTimer', 'sprintCooldown',