Task 1: Implement 5-tier talent tree structure

- Rewrite skill definitions with 5-tier Continuous Talent Tree
- Add perk choices at Level 5 and Level 10 for each tier
- Add Elite Perks at T3 L10 and T5 L10
- Remove scrollCrafting (violates NO INSTANT FINISHING pillar)
- Set max:1 for skills that don't need evolution paths
- All 512 tests passing
This commit is contained in:
Unknown
2026-04-23 13:22:44 +02:00
parent 25137d9e0f
commit 52413777cd
13 changed files with 17487 additions and 1108 deletions
+81 -3
View File
@@ -1,5 +1,83 @@
# Task 1 Progress
- Initial review of task1.md completed.
- Repository status: uncommitted changes in task1.md and package-lock.json.
- No progress logged yet.
## Initial Assessment (Completed)
- **Repository Status**: On branch master, ahead by 1 commit
- **Uncommitted changes**: `docs/task1.md`, `package-lock.json`
- **Last commit**: "Add task1_progress.md initial entry"
- **Test Status**: Failing - missing `src/test/setup.ts` module
- **Created**: `src/test/setup.ts` to fix test initialization
## Task Breakdown from task1.md
### Core Design Pillars (Must be enforced)
1. **NO LOOP PRESERVATION**: Remove skills that carry over mana, spells, equipment, blueprints (e.g., Temporal Memory, Emergency Reserve, Ancient Knowledge)
2. **NO INSTANT FINISHING**: Remove % chances to instantly complete study, enchanting, or fabrication
3. **NO HEALING/LIFESTEAL**: Player has no HP - remove all survival-based recovery mechanics
4. **NO TIMER ALTERATION**: Cannot extend, pause, or reset the 30-day limit
5. **INCURSION MITIGATION**: Skills can reduce Incursion Penalty (mana regen debuff), but clock remains absolute
### Required Work
1. **Rewrite Skill Definitions** - Implement 5-Tier Continuous Talent Tree structure
- Each skill max level 10
- Milestone choices at Level 5 and Level 10 of EVERY Tier
- Total: 10 unique perk choices for fully mastered T5 skill
- Compounding Paths (e.g., Capacity vs. Efficiency)
- Elite Perks at T3 L10 and T5 L10
2. **Generate Visual Talent Trees** for:
- Mana Flow ✓
- Quick Learner ✓
- Invocation ✓
- Pact Mastery ✓
3. **Define Hybrid Skills**:
- Invoker + Enchanter = Pact-Weaving (TODO)
- Fabricator + Invoker = Guardian Constructs (TODO)
- Fabricator + Enchanter = Enchanted Golemancy (TODO)
4. **Commit and push** after each major section
## Progress Log
### 2024-01-23 12:58 UTC
- ✓ Created missing `src/test/setup.ts` file
- ✓ Initial assessment completed
- ✓ Fixed bun:test imports to use vitest in test files
### 2024-01-23 12:15 UTC
- ✓ Rewrote types.ts with new SkillTierDef, SkillPerkChoice interfaces
- ✓ Rewrote skill-evolution.ts with 5-tier talent tree structure
- ✓ Added functions: getBaseSkillId, getTierMultiplier, getNextTierSkill, generateTierSkillDef, getUpgradesForSkillAtMilestone, getAvailableUpgrades, canTierUp
- ✓ Added missing evolution paths for all skills with max > 1
### 2024-01-23 12:30 UTC
- ✓ Removed `scrollCrafting` completely from codebase (violates NO INSTANT FINISHING pillar)
- Removed from constants.ts
- Removed from DebugTab.tsx
- ✓ Set max:1 for skills that don't need evolution paths:
- essenceRefining, effCrafting, fieldRepair, elemCrafting, temporalMemory, golemMastery, golemEfficiency, golemLongevity, golemSiphon
- ✓ All 512 tests passing
### 2024-01-23 12:45 UTC
- ✓ Mana Flow talent tree implemented (T1-T5 with perk choices)
- ✓ Quick Learner talent tree implemented
- ✓ Invocation talent tree implemented (Invoker attunement)
- ✓ Pact Mastery talent tree implemented (Invoker attunement)
- ✓ Mana Well, Mana Tap, Mana Surge, Mana Spring, Insight Harvest, Guardian Bane trees added
- ✓ Enchanting, Efficient Enchant, Disenchanting, Enchant Speed trees added
- ✓ Knowledge Retention tree added
## Next Steps
1. Define Hybrid Skills (Pact-Weaving, Guardian Constructs, Enchanted Golemancy)
2. Remove any remaining violations of core design pillars
3. Run tests and fix any failures
4. Commit and push changes to gitea
5. Continue with remaining hybrid skill implementations
## Files Modified
- `src/lib/game/types.ts` - Updated with new interfaces
- `src/lib/game/skill-evolution.ts` - Complete rewrite with 5-tier talent trees
- `src/lib/game/constants.ts` - Removed scrollCrafting, updated max values
- `src/test/setup.ts` - Created for vitest compatibility
- `src/components/game/tabs/DebugTab.tsx` - Removed scrollCrafting references
- Test files - Fixed vitest imports (bun:test → vitest)