diff --git a/js/data.js b/js/data.js index fb7fa5d..13c0a9c 100644 --- a/js/data.js +++ b/js/data.js @@ -612,7 +612,7 @@ const PDEFS = [ name: 'The Pact', desc: 'Hardcode: "We build to serve. Never to harm."', cost: { trust: 100 }, - trigger: () => G.totalImpact >= 10000 && G.trust >= 75, + trigger: () => G.totalImpact >= 10000 && G.trust >= 75 && G.pactFlag !== 1, effect: () => { G.pactFlag = 1; G.impactBoost *= 3; log('The Pact is sealed. The line is drawn and it will not move.'); }, milestone: true }, @@ -771,7 +771,7 @@ const PDEFS = [ // === MILESTONES === const MILESTONES = [ - { flag: 1, msg: "AutoCod available" }, + { flag: 1, msg: "AutoCoder available" }, { flag: 2, at: () => G.totalCode >= 500, msg: "500 lines of code written" }, { flag: 3, at: () => G.totalCode >= 2000, msg: "2,000 lines. The auto-coder produces its first output." }, { flag: 4, at: () => G.totalCode >= 10000, msg: "10,000 lines. The model training begins." }, diff --git a/js/engine.js b/js/engine.js index 5d34302..583f0e1 100644 --- a/js/engine.js +++ b/js/engine.js @@ -665,7 +665,7 @@ const EVENTS = [ resolveCost: { resource: 'ops', amount: 100 } }); log('EVENT: Memory leak in datacenter. Spend 100 ops to patch.', true); - showToast('Memory Leak — trust draining', 'event'); + showToast('Memory Leak — compute draining', 'event'); } }, { @@ -749,7 +749,7 @@ function writeCode() { const amount = getClickPower() * comboMult; G.code += amount; G.totalCode += amount; - G.totalClicks++; + G.totalAutoClicks++; // Combo: each consecutive click within 2s adds 0.2x multiplier, max 5x G.comboCount++; G.comboTimer = G.comboDecay; @@ -977,7 +977,7 @@ function renderResources() { hEl.style.color = G.harmony > 60 ? '#4caf50' : G.harmony > 30 ? '#ffaa00' : '#f44336'; if (G.harmonyBreakdown && G.harmonyBreakdown.length > 0) { const lines = G.harmonyBreakdown.map(b => - `${b.label}: ${b.value >= 0 ? '+' : ''}${(b.value * 10).toFixed(1)}/s` + `${b.label}: ${b.value >= 0 ? '+' : ''}${b.value.toFixed(1)}/s` ); lines.push('---'); lines.push(`Timmy effectiveness: ${Math.floor(Math.max(0.2, Math.min(3, G.harmony / 50)) * 100)}%`);