Commit Graph

30 Commits

Author SHA1 Message Date
8a62a4faaf fix: Remove problematic effects and ensure insight only gained on loop reset
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m54s
- Remove armor pierce, mana equilibrium, perfect memory, free study, mind palace, elemental harmony, deep storage, double craft, pure elements
- Replace with balanced alternatives: first strike, flow mastery, quick grasp, efficient learning, deep understanding, elemental affinity, mana overflow, elemental surge, exotic mastery
- Remove insight-gaining effects (studyInsight, manaAscension, knowledgeOverflow, studyMastery)
- Ensure insight can ONLY be gained on loop reset
- Remove conversion-related upgrades (conversion not available to players)
- Fix duplicate effect IDs
2026-03-27 13:55:26 +00:00
d0ecbfefd9 Update worklog with audit findings
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 26s
2026-03-27 11:29:17 +00:00
e9e056a3f0 Fix critical bugs, add test framework, improve code quality
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Has been cancelled
- Fix syntax errors with missing brackets in store.ts and crafting-slice.ts
- Fix state mutation issues with lootInventory deep cloning
- Remove race condition from mid-tick set() call
- Fix COMBO_MASTER using wrong counter (totalTicks vs totalSpellsCast)
- Add null safety to hasSpecial() function
- Clamp mana to 0 in deductSpellCost() to prevent negative values
- Set up Vitest testing framework with 36 passing tests
2026-03-27 11:28:30 +00:00
b3e358e9a7 Update worklog with study system fixes
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 26s
2026-03-27 09:36:16 +00:00
2f407071a4 Fix study system: per-hour mana cost instead of upfront, fix game time freeze bug, improve mobile UI
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m43s
2026-03-27 09:33:48 +00:00
a5e37b9b24 Fix UI issues: Equipment tab, remove manual floor navigation and element conversion
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m34s
- Fix EquipmentTab props interface
- Fix ActionButtons to receive correct props
- Remove manual ascend/descend floor buttons - floor changes automatically after clearing
- Remove Element Conversion section from LabTab
- Remove Unlock Elements section from LabTab
- Remove Convert action from ActionButtons
- Simplify SpireTab to be self-contained with just store prop
2026-03-26 16:47:50 +00:00
5416b327af Update Dockerfile to run as root user
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m35s
Remove non-root user creation and USER directive to allow root privileges for custom steps
2026-03-26 16:23:40 +00:00
fa713a15b5 Fix prerender error: correct component props
All checks were successful
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 2m0s
- Fix ComboMeter to receive combo object and isClimbing flag
- Fix LootInventoryDisplay to receive correct inventory and callbacks
- Fix AchievementsDisplay to receive required gameState props
2026-03-26 16:18:54 +00:00
378e434d44 Fix build errors and add Equipment tab
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m7s
- Create missing StudyProgress component for SkillsTab
- Create missing UpgradeDialog component for SkillsTab
- Add EquipmentTab with gear selection interface
  - Shows all 8 equipment slots with equipped items
  - Displays inventory of unequipped items
  - Allows equipping/unequipping gear
  - Shows equipment stats summary and active effects
2026-03-26 16:02:56 +00:00
a2c9af7d45 Remove familiar system to focus on guardian pacts
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m11s
- Remove familiar-slice.ts, familiars.ts data file, and FamiliarTab.tsx
- Remove all familiar types from types.ts (FamiliarRole, FamiliarAbilityType, etc.)
- Remove familiar state from GameState interface
- Remove familiar bonuses from combat calculations
- Remove familiar XP tracking from tick function
- Remove familiar tab from page.tsx UI

This simplifies the game to focus on guardian pacts as the primary
progression mechanic, avoiding the parallel familiar system that
diluted the importance of pacts.
2026-03-26 14:58:07 +00:00
c050ca3814 Remove Battle Fury consecutive hit multiplier feature
Some checks failed
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m17s
- Remove BATTLE_FURY from SPECIAL_EFFECTS constant
- Remove consecutiveHits from GameState type
- Remove consecutive hit tracking from store.ts
- Replace Battle Fury upgrade with Critical Eye (+10% crit chance)
- Clean up computeDynamicDamage function signature
2026-03-26 13:59:59 +00:00
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