Commit Graph

7 Commits

Author SHA1 Message Date
f9dd4c3ca4 feat: click scales with generators (types + quantity), not prod/s
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 20s
clickGain = base × prestige × tree × (1 + types×2 + totalOwned×0.05)

Click power is now its own system:
- Each generator TYPE owned: +2 to click mult (diversity = power)
- Each generator UNIT owned: +0.05 (stacking helps but less)
- 5 types × 10 each = x13.5 click multiplier from infra alone
- Decoupled from prod/s — buying generators boosts BOTH systems

ClickPanel shows infra breakdown (types bonus + units bonus).
2026-03-28 21:13:20 +01:00
45b89ebae1 feat: click gain scales with passive production (+1% of prod/s)
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 21s
clickGain = base × prestige × tree × (1 + prod/s × 0.01)

At 3.1k/s passive: 10 × 32 = 320 per click instead of 10.
Clicking stays relevant as production grows — always ~1% of prod/s
worth per click. ClickPanel shows the prod multiplier in breakdown.
2026-03-28 21:11:19 +01:00
25768e3665 feat: click panel breakdown + guide updated
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 20s
ClickPanel in Production tab — full click breakdown:
- Gain per click with formula (base × prestige × tree)
- Double Ponte chance (+ how to unlock if not)
- Crit Ponte chance (+ how to unlock if not)
- Auto-Ponte rate + effective prod/s
- Hint to invest in Ponte branch when no tree bonuses

Guide updated with 11 sections:
- Ponte (clic) section — breakdown, double/crit/auto explained
- Generateurs section — effective prod, multi-buy, share bars
- Prestige section — quadratic scaling formula explained
- Arbre section — 3 branches + convergence detailed
- Capstones section — all 3 + convergence alpha/omega
2026-03-28 20:58:18 +01:00
120f4bedca feat: buy x1/x5/x10/xMax + production preview per generator
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 21s
- buyGenerator() supports quantity param (multi-buy loop)
- maxAffordable() / bulkCost() — compute max purchasable + total cost
- GeneratorShop: mode selector (x1/x5/x10/MAX)
- Each generator shows +X/s in amber — what the next purchase adds
- Button shows total cost + quantity (e.g. "1.5k (x5)")
2026-03-28 20:52:30 +01:00
38e63fdf22 feat: prestige threshold scales quadratically with prestige count
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 21s
threshold = 1M × (1 + 0.1 × prestigeCount)² × (1 - treeReduction)

P0=1M, P5=2.25M, P10=4M, P20=9M, P50=36M
Tree reduction still applies on top. Forces strategic prestige timing
and gives the idle loop longevity.
2026-03-28 20:50:34 +01:00
9d27cb6648 feat: show effective production per generator with all bonuses
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 21s
New generatorEffectiveProduction() — applies prestige mult, tree mult,
nid boost, synergy, and convergence to per-generator production.

GeneratorShop now shows:
- Effective prod/s (green, with all bonuses)
- % share of total production
- Mini progress bar per generator
- When owned=0: shows effective prod per unit (so you see upgrade impact)
2026-03-28 20:47:24 +01:00
f6bff6e389 feat: migrate frontend React 18 → Svelte 5 + SvelteKit
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 22s
Core logic portable (economy, balance, cosmetics, migrateSave) — zero rewrite.
136 tests green, identiques. Backend inchangé.

- Svelte 5 runes stores (game, auth, toast) remplacent Zustand
- SvelteKit adapter-static SPA (dist/ output, fallback index.html)
- Tailwind v4 conservé, design system .gp-* porté
- Transitions natives : slide, fly, scale, fade sur toute l'UI
- Sidebar tabbée (Production/Evolution/Collection) + CollapsiblePanel
- Mobile bottom sheet avec FAB toggle + backdrop blur
- Click particles réactifs Svelte (plus de DOM impératif)
- TadpoleSprite bounce + glow ring au clic
- Guide refait en accordéon, Achievements avec filtres
- a11y : focus-visible, Escape modals, aria-current, aria-labels
- CI/CD adapté (tests + build + rsync)
- Build 504K (vs ~1.2MB React)
2026-03-28 20:03:21 +01:00