Rework story engine flow and reorganize project docs
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-04-06 23:19:00 +08:00
parent d678929064
commit ddcb5d5c8c
241 changed files with 19805 additions and 2478 deletions

View File

@@ -3,7 +3,7 @@ import {
FunctionCategory,
PlayerStateMode,
SceneDirective,
SceneMonster,
SceneHostileNpc,
SkillStyle,
StoryOption,
WorldType,
@@ -73,7 +73,7 @@ export interface FunctionAvailabilityContext {
inBattle: boolean;
currentSceneId?: string | null;
currentSceneName?: string | null;
monsters: SceneMonster[];
monsters: SceneHostileNpc[];
playerHp: number;
playerMaxHp: number;
playerMana: number;
@@ -185,7 +185,7 @@ export function buildStateFunctionDefinitions(
const ALL_FUNCTIONS = buildStateFunctionDefinitions();
function hasAliveMonsters(monsters: SceneMonster[]) {
function hasAliveMonsters(monsters: SceneHostileNpc[]) {
return monsters.some((monster) => monster.hp > 0);
}