- 删除中间契约(BattleStartRequest/BattlePlayerInput/BattleReturnPlan/桥接与策略接口/FlowState),收敛为 BattleViewState/BattleStep/一层 BattleEvent - 新增内部 BattleRuntime/BattleUnit/BattleStatus 共享上下文;TurnBattleComponent 成为唯一外部入口,吸收启动/暂停/回写职责 - 内核支持 1v1 攻击闭环:效果公式、HP/MP 钳制、阵亡、Victory/TotalDefeat、敌人随机决策;敌人行动间歇 0.6s 由组件协程编排并经 StepListener 推送 - UI:玩家卡片/敌人槽/回合槽按战局重建,图标配置驱动(含新增 EnemyConfig.Icon),每轮刷新一次 TurnSlots 且轮内只移动高亮 - 新增 Tests 程序集 + InternalsVisibleTo,25 个 BattleRuntime 纯逻辑用例全部通过
51 lines
756 B
JSON
51 lines
756 B
JSON
[
|
|
{
|
|
"id": 3001,
|
|
"name": "敌人1",
|
|
"maxHp": 50,
|
|
"maxMp": 0,
|
|
"atk": 8,
|
|
"mat": 0,
|
|
"speed": 8,
|
|
"threatLevelId": 1,
|
|
"aiType": 1,
|
|
"actionIds": [
|
|
201
|
|
],
|
|
"dropTableId": 1,
|
|
"icon": "敌人1"
|
|
},
|
|
{
|
|
"id": 3002,
|
|
"name": "敌人2",
|
|
"maxHp": 80,
|
|
"maxMp": 0,
|
|
"atk": 12,
|
|
"mat": 0,
|
|
"speed": 10,
|
|
"threatLevelId": 2,
|
|
"aiType": 1,
|
|
"actionIds": [
|
|
201
|
|
],
|
|
"dropTableId": 2,
|
|
"icon": "敌人2"
|
|
},
|
|
{
|
|
"id": 3003,
|
|
"name": "敌人3",
|
|
"maxHp": 60,
|
|
"maxMp": 30,
|
|
"atk": 6,
|
|
"mat": 12,
|
|
"speed": 12,
|
|
"threatLevelId": 3,
|
|
"aiType": 1,
|
|
"actionIds": [
|
|
201,
|
|
202
|
|
],
|
|
"dropTableId": 3,
|
|
"icon": "敌人3"
|
|
}
|
|
] |