fix: set currentAction 'climb' and use generateSpireFloorState in enterSpireMode
This commit is contained in:
@@ -7,6 +7,7 @@ import { createSafeStorage } from '../utils/safe-persist';
|
||||
import type { GameAction, SpellState, FloorState, GolemancyState, ActivityLogEntry, AchievementState, EquipmentSpellState, ActivityEventType } from '../types';
|
||||
import { getFloorMaxHP } from '../utils';
|
||||
import { generateFloorState } from '../utils/room-utils';
|
||||
import { generateSpireFloorState } from '../utils/spire-utils';
|
||||
import { addActivityLogEntry } from '../utils/activity-log';
|
||||
import { processCombatTick, makeInitialSpells } from './combat-actions';
|
||||
import type { CombatStore } from './combat-state.types';
|
||||
@@ -198,9 +199,10 @@ export const useCombatStore = create<CombatStore>()(
|
||||
},
|
||||
|
||||
enterSpireMode: () => {
|
||||
const freshRoom = generateFloorState(1);
|
||||
const freshRoom = generateSpireFloorState(1, 0, 1);
|
||||
set({
|
||||
spireMode: true,
|
||||
currentAction: 'climb',
|
||||
currentFloor: 1,
|
||||
floorHP: getFloorMaxHP(1),
|
||||
floorMaxHP: getFloorMaxHP(1),
|
||||
|
||||
Reference in New Issue
Block a user