1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { AnimationState } from '../../../types';
|
||||
import type { StateFunctionSource } from '../types';
|
||||
import type { StateFunctionRuntimeSource } from '../types';
|
||||
|
||||
/**
|
||||
* battle_all_in_crush
|
||||
@@ -7,7 +7,7 @@ import type { StateFunctionSource } from '../types';
|
||||
* 战斗中的正面爆发动作。它要求主角不绕、不拖,直接把当前回合的叙事、
|
||||
* 技能权重和视觉表现都推向“强压正面敌人”的方向。
|
||||
*/
|
||||
export const BATTLE_ALL_IN_CRUSH_FUNCTION_SOURCE: StateFunctionSource = {
|
||||
export const BATTLE_ALL_IN_CRUSH_FUNCTION_SOURCE: StateFunctionRuntimeSource = {
|
||||
definition: {
|
||||
id: 'battle_all_in_crush',
|
||||
state: 'battle',
|
||||
@@ -56,5 +56,23 @@ export const BATTLE_ALL_IN_CRUSH_FUNCTION_SOURCE: StateFunctionSource = {
|
||||
category: 'battle',
|
||||
active: true,
|
||||
},
|
||||
runtime: {
|
||||
buildSuggestedActionText({ metrics, environment }) {
|
||||
if (metrics.monsterHpRatio <= 0.25) {
|
||||
return `压上去收掉${environment.monsterName}最后一口气`;
|
||||
}
|
||||
if (metrics.playerHpRatio <= 0.35) {
|
||||
return `顶着伤势强压${environment.monsterName}赌一波强杀`;
|
||||
}
|
||||
return `正面强压${environment.monsterName}不给喘息`;
|
||||
},
|
||||
getPriority({ metrics }) {
|
||||
return metrics.monsterHpRatio <= 0.25
|
||||
? 8
|
||||
: metrics.playerHpRatio <= 0.35
|
||||
? 2
|
||||
: 4;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user