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
@@ -9,7 +9,7 @@ import { usePrestigeStore } from './prestigeStore';
import { useDisciplineStore } from './discipline-slice';
import { useManaStore } from './manaStore';
import { summonGolemsOnRoomEntry } from './golem-combat-actions';
import type { FloorState } from '../types';
type GetFn = () => CombatStore;
type SetFn = (state: Partial<CombatState>) => void;
@@ -253,7 +253,7 @@ export function onEnterLibraryRoom(get: GetFn, set: SetFn): void {
// ─── enterSpireMode (climbing spec §4.1) ──────────────────────────────────────
export function createEnterSpireMode(get: GetFn, set: SetFn, generateFloorState: (floor: number) => FloorState) {
export function createEnterSpireMode(get: GetFn, set: SetFn) {
return () => {
const prestigeStore = usePrestigeStore.getState();
const spireKey = prestigeStore.prestigeUpgrades.spireKey || 0;