fix: set currentAction 'climb' and use generateSpireFloorState in enterSpireMode
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Circular Dependencies
|
# Circular Dependencies
|
||||||
Generated: 2026-05-28T07:47:51.159Z
|
Generated: 2026-05-28T10:11:25.803Z
|
||||||
|
|
||||||
No circular dependencies found. ✅
|
No circular dependencies found. ✅
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"generated": "2026-05-28T07:47:49.204Z",
|
"generated": "2026-05-28T10:11:23.994Z",
|
||||||
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
|
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
|
||||||
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
|
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
|
||||||
},
|
},
|
||||||
@@ -479,7 +479,8 @@
|
|||||||
"utils/activity-log.ts",
|
"utils/activity-log.ts",
|
||||||
"utils/index.ts",
|
"utils/index.ts",
|
||||||
"utils/room-utils.ts",
|
"utils/room-utils.ts",
|
||||||
"utils/safe-persist.ts"
|
"utils/safe-persist.ts",
|
||||||
|
"utils/spire-utils.ts"
|
||||||
],
|
],
|
||||||
"stores/crafting-equipment-tick.ts": [
|
"stores/crafting-equipment-tick.ts": [
|
||||||
"constants.ts",
|
"constants.ts",
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { createSafeStorage } from '../utils/safe-persist';
|
|||||||
import type { GameAction, SpellState, FloorState, GolemancyState, ActivityLogEntry, AchievementState, EquipmentSpellState, ActivityEventType } from '../types';
|
import type { GameAction, SpellState, FloorState, GolemancyState, ActivityLogEntry, AchievementState, EquipmentSpellState, ActivityEventType } from '../types';
|
||||||
import { getFloorMaxHP } from '../utils';
|
import { getFloorMaxHP } from '../utils';
|
||||||
import { generateFloorState } from '../utils/room-utils';
|
import { generateFloorState } from '../utils/room-utils';
|
||||||
|
import { generateSpireFloorState } from '../utils/spire-utils';
|
||||||
import { addActivityLogEntry } from '../utils/activity-log';
|
import { addActivityLogEntry } from '../utils/activity-log';
|
||||||
import { processCombatTick, makeInitialSpells } from './combat-actions';
|
import { processCombatTick, makeInitialSpells } from './combat-actions';
|
||||||
import type { CombatStore } from './combat-state.types';
|
import type { CombatStore } from './combat-state.types';
|
||||||
@@ -198,9 +199,10 @@ export const useCombatStore = create<CombatStore>()(
|
|||||||
},
|
},
|
||||||
|
|
||||||
enterSpireMode: () => {
|
enterSpireMode: () => {
|
||||||
const freshRoom = generateFloorState(1);
|
const freshRoom = generateSpireFloorState(1, 0, 1);
|
||||||
set({
|
set({
|
||||||
spireMode: true,
|
spireMode: true,
|
||||||
|
currentAction: 'climb',
|
||||||
currentFloor: 1,
|
currentFloor: 1,
|
||||||
floorHP: getFloorMaxHP(1),
|
floorHP: getFloorMaxHP(1),
|
||||||
floorMaxHP: getFloorMaxHP(1),
|
floorMaxHP: getFloorMaxHP(1),
|
||||||
|
|||||||
Reference in New Issue
Block a user