fix: combat room progression - replace legacy room-utils with spire-utils, align UI with store state
Build and Publish Mana Loop Docker Image / build-and-publish (push) Failing after 1m1s

This commit is contained in:
2026-06-04 18:54:33 +02:00
parent ab3afae2a6
commit 40a50d34f4
6 changed files with 35 additions and 104 deletions
+5 -3
View File
@@ -7,9 +7,11 @@ export type { RoomType } from '../types/game';
// - Every 5th floor (5, 15, 25, etc.) has a chance for special rooms
// - Other floors are combat with chance for swarm/speed
export const PUZZLE_ROOM_INTERVAL = 7; // Every 7 floors, chance for puzzle
export const SWARM_ROOM_CHANCE = 0.15; // 15% chance for swarm room
export const SPEED_ROOM_CHANCE = 0.10; // 10% chance for speed room
export const PUZZLE_ROOM_CHANCE = 0.20; // 20% chance for puzzle room on puzzle floors
// NOTE: These constants are used by the legacy room-utils.ts (test-only).
// The active spire system in spire-utils.ts uses its own internal probabilities.
export const SWARM_ROOM_CHANCE = 0.15; // 15% chance for swarm room (legacy)
export const SPEED_ROOM_CHANCE = 0.10; // 10% chance for speed room (legacy)
export const PUZZLE_ROOM_CHANCE = 0.20; // 20% chance for puzzle room on puzzle floors (legacy)
// Puzzle room definitions - themed around attunements
export const PUZZLE_ROOMS: Record<string, {