Commit Graph

6 Commits

Author SHA1 Message Date
d7add2d7f4 fix(endgame): suppress ordinary project activation during ReCKoning (#132)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Successful in 5s
Smoke Test / smoke (pull_request) Failing after 6s
Problem: Under realistic late-game totals, many ordinary projects
activate alongside the ReCKoning endgame sequence, drowning the
climactic narrative under a large research backlog.

Fix: Add endgame gating to checkProjects() that suppresses all
non-endgame project activation when endgame conditions are met.

Changes:

data.js:
- Added endgameFlag (1 = endgame active) to game state
- Added reckoningActive (1 = ReCKoning running) to game state
- Added endgame: true to p_final_milestone
- Added 4 ReCKoning sequence projects (001, 050, 100, 140):
  - p_reckoning_001: The Signal (sets reckoningActive)
  - p_reckoning_050: Reflection
  - p_reckoning_100: The Question
  - p_reckoning_140: Resolution (clears endgame flags)

engine.js:
- Added isEndgame() function: returns true when endgameFlag=1
  or when final milestone conditions are met (auto-detect)
- Modified checkProjects(): endgame guard skips all projects
  without endgame: true flag when endgame is active
- Only p_final_milestone and p_reckoning_* can activate during endgame

The sequence: normal game → final milestone → endgame activates →
only ReCKoning projects can fire → ReCKoning 140 resolves →
flags cleared → normal projects resume.

Closes #132
2026-04-14 14:18:51 -04:00
Alexander Whitestone
a2f345593c fix: restore manual click counting in QA bug sweep
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 3s
Smoke Test / smoke (pull_request) Failing after 4s
2026-04-13 02:21:39 -04:00
Alexander Whitestone
8e006897a4 fix: QA bug sweep — 5 fixes (closes #95)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 3s
1. Memory Leak toast: "trust draining" → "compute draining"
2. Harmony tooltip: remove 10× multiplier (values already per-second)
3. autoType(): track as totalAutoClicks instead of totalClicks
4. The Pact (late): guard trigger with pactFlag !== 1
5. Typo: "AutoCod" → "AutoCoder"
2026-04-13 02:02:59 -04:00
Alexander Whitestone
e72e5ee121 fix: critical bugs from QA (#86, #87, #89)
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 3s
- Deleted dead game.js (duplicate const declarations)
- Fixed Wire Budget double-counting trust cost
2026-04-12 22:52:01 -04:00
Alexander Whitestone
a5babe10b8 feat: add Creative Engineering projects — creativity as currency
Some checks failed
Accessibility Checks / a11y-audit (pull_request) Failing after 2s
Smoke Test / smoke (pull_request) Failing after 4s
Implements #20: Creative-to-Ops Conversion

Added 6 new projects that use creativity as a resource currency:

1. Lexical Processing (50 creativity) — +2 knowledge/sec, +50% knowledge boost
2. Semantic Analysis (150 creativity) — +5 user/sec, +100% user boost
3. Creative Breakthrough (500 creativity) — all boosts +25%, +10 ops/sec
4. Creativity → Operations (repeatable, 50 creativity → 250 ops)
5. Creativity → Knowledge (repeatable, 75 creativity → 500 knowledge)
6. Creativity → Code (repeatable, 100 creativity → 2000 code)

The one-shot projects form a progression chain (lexical → semantic → breakthrough).
The three conversion projects are repeatable, giving players ongoing reasons to
generate creativity and meaningful choices about how to spend it.
2026-04-11 16:31:01 -04:00
1b41ce740f Create js/data.js
Some checks failed
Smoke Test / smoke (push) Has been cancelled
2026-04-11 01:32:24 +00:00