2.4 KiB
Executable File
2.4 KiB
Executable File
Mana Loop — Agent Guide
Browser incremental/idle game. Next.js 16 + Zustand, no backend.
🔑 Git
https://n8n-gitea:tkF9HFgxL2k4cmT@gitea.tailf367e3.ts.net/Anexim/Mana-Loop.git
git config --global user.name "n8n-gitea"
git config --global user.email "n8n-gitea@anexim.local"
Workflow
cd /home/user/repos/Mana-Loop && git pull origin master
# ... work ...
git add -A && git commit -m "type: desc" && git push origin master
Session Start
docs/project-structure.txtdocs/dependency-graph.jsonget_repo_summary→ resume in-progress or pick top todoupdate_issue_status→ai:in-progress- Work, log with
add_comment, thenupdate_issue_status→ai:done
Labels
ai:todo | ai:in-progress | ai:review | ai:blocked | ai:done
Terminal Tool
Always pair run_command → get_process_status in same turn. Use wait: 120 for long tasks.
Sub-Agents
Use for 3+ sequential independent calls. Zero context from parent — paste everything needed.
Architecture
- Stack: Next.js 16, TS 5, Tailwind 4 + shadcn/ui, Zustand+persist, Vitest/Playwright, Bun
- Active stores:
src/lib/game/stores/{game,mana,combat,prestige,skill,ui}Store.ts - Legacy (migrating):
src/lib/game/store/andstore-modules/ - Crafting: 3-step flow — Design → Prepare → Apply via
crafting-actions/ - Skills v2:
constants/skills-v2.ts+computeStats()in effects - Effects: All stat mods through
getUnifiedEffects()— never read skill levels directly
Adding Effects
data/enchantment-effects.tseffects.ts→computeEquipmentEffects()- Access via
getUnifiedEffects(state)
Adding Skills
constants/skills-v2.tscomputeStats()mapping
Adding Spells
constants/spells.tsdata/enchantment-effects.tsconstants/skills-v2.tsresearch skillEFFECT_RESEARCH_MAPPING
Banned
Lifesteal/healing, scroll crafting, ascension skills, LabTab, pause, mana types: life, blood, wood, mental, force
File Limit
400 lines max (pre-commit hook enforces).
Mana Types
Base (7): Fire 🔥 Water 💧 Air 🌬️ Earth ⛰️ Light ☀️ Dark 🌑 Death 💀 Utility (1): Transference 🔗 Compound (3): Fire+Earth=Metal, Earth+Water=Sand, Fire+Air=Lightning Exotic (3): Sand+Sand+Light=Crystal, Fire+Fire+Light=Stellar, Dark+Dark+Death=Void