Commit Graph

19 Commits

Author SHA1 Message Date
44d9e0a835 docs: Update worklog with session summary
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m7s
2026-03-26 13:41:57 +00:00
3ce0bea13f feat: Implement study special effects
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m13s
- MENTAL_CLARITY: +10% study speed when mana > 75%
- STUDY_RUSH: First hour of study is 2x speed
- STUDY_MOMENTUM: +5% study speed per consecutive hour (max +50%)
- KNOWLEDGE_ECHO: 10% chance for instant study progress
- STUDY_REFUND: 25% mana back on study completion
- Add tracking for studyStartedAt and consecutiveStudyHours
- Reset tracking when study completes or stops
2026-03-26 13:38:55 +00:00
fec3a2b88f feat: Implement combat special effects
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m26s
- BATTLE_FURY: +10% damage per consecutive hit (resets on floor change)
- COMBO_MASTER: Every 5th attack deals 3x damage
- ADRENALINE_RUSH: Restore 5% mana on floor clear
- Add hitsThisTick tracking for proper consecutive hit counting
- Reset consecutiveHits when floor changes
2026-03-26 13:33:14 +00:00
751b317af2 feat: Implement critical special effects (partial)
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m9s
- Add consecutiveHits to GameState for battle effects
- Implement MANA_ECHO (10% double mana on click)
- Implement EMERGENCY_RESERVE (keep 10% mana on new loop)
- Add foundation for BATTLE_FURY and COMBO_MASTER
- Add lifesteal and spell echo from equipment
- Add parallel study processing in tick
2026-03-26 13:24:04 +00:00
315490cedb docs: Add README.md, update AGENTS.md, audit report, and massive refactoring
Documentation:
- Add comprehensive README.md with project overview
- Update AGENTS.md with new file structure and slice pattern
- Add AUDIT_REPORT.md documenting unimplemented effects

Refactoring (page.tsx: 1695 → 434 lines, 74% reduction):
- Extract SkillsTab.tsx component
- Extract StatsTab.tsx component
- Extract UpgradeDialog.tsx component
- Move getDamageBreakdown and getTotalDPS to computed-stats.ts
- Move ELEMENT_ICON_NAMES to constants.ts

All lint checks pass, functionality preserved.
2026-03-26 13:01:29 +00:00
2ca5d8b7f8 refactor: Major codebase refactoring for maintainability
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 3m4s
Store refactoring (2138 → 1651 lines, 23% reduction):
- Extract computed-stats.ts with 18 utility functions
- Extract navigation-slice.ts for floor navigation actions
- Extract study-slice.ts for study-related actions
- Move fmt/fmtDec to computed-stats, re-export from formatting

Page refactoring (2554 → 1695 lines, 34% reduction):
- Use existing SpireTab component instead of inline render
- Extract ActionButtons component
- Extract CalendarDisplay component
- Extract CraftingProgress component
- Extract StudyProgress component
- Extract ManaDisplay component
- Extract TimeDisplay component
- Create tabs/index.ts for cleaner exports

This improves code organization and makes the codebase more maintainable.
2026-03-26 12:00:30 +00:00
1d2dce75cc Add equipment crafting system
- Add crafting-recipes.ts with blueprint definitions and material requirements
- Update crafting-slice.ts with equipment crafting functions
- Add EquipmentCraftingProgress type and state
- Update CraftingTab.tsx with new Craft tab for equipment crafting
- Add material deletion functionality
- Update store.ts with equipment crafting methods
- Update page.tsx to pass new props to CraftingTab

Features:
- Players can craft equipment from discovered blueprints
- Crafting requires materials and mana
- Materials are obtained from loot drops
- New Craft tab in the crafting interface
- Shows blueprint details and material requirements
2026-03-26 11:04:50 +00:00
4f4cbeb527 Add floor navigation system with up/down direction and respawn mechanics
- Added climbDirection state to track player movement direction
- Added clearedFloors tracking for floor respawn system
- Players can now manually navigate between floors using ascend/descend buttons
- Floors respawn when player leaves and returns (for loot farming)
- Enhanced LootInventory component with:
  - Full inventory management (materials, essence, equipment)
  - Search and filter functionality
  - Sorting by name, rarity, or count
  - Delete functionality with confirmation dialog
- Added updateLootInventory function to store
- Blueprints are now shown as permanent unlocks in inventory
- Floor navigation UI shows direction toggle and respawn indicators
2026-03-26 10:28:15 +00:00
ee0268d9f6 Fix Docker build: exclude .config file and simplify Dockerfile
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 3m11s
2026-03-25 18:00:09 +00:00
6f2f022cb9 Fix Docker build: create .config/prisma directory and use proper standalone output
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m24s
2026-03-25 17:55:19 +00:00
aeabebdd9f Fix Docker build: create .config/prisma directory for Prisma 6
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Has been cancelled
2026-03-25 17:54:05 +00:00
81a72a1ed7 Fix Docker build: set PRISMA_SKIP_CONFIG_LOADING and use standalone output
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m38s
2026-03-25 17:51:09 +00:00
5e9f560f26 Fix Docker build: use npx prisma generate and multi-stage build
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 2m4s
2026-03-25 17:47:27 +00:00
3386ffc41e Fix bun install command - remove invalid --production=false flag
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 2m4s
2026-03-25 17:20:43 +00:00
390b1de203 Add mandatory git workflow instructions to AGENTS.md
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 44s
2026-03-25 17:18:10 +00:00
ff5ecd82ca Add Docker support and Gitea Actions workflow for container builds
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 4m55s
2026-03-25 17:07:17 +00:00
Z User
7c5f2f30f0 pack 2026-03-25 16:35:56 +00:00
Z User
3b2e89db74 pack 2026-03-25 15:05:12 +00:00
Z User
5b6e50c0bd Initial commit 2026-03-25 07:22:25 +00:00