BattleBoostContextSupport

boost / stage 变化上下文的统一 support。

设计意图:

  • 收口 boost relay、boost attributes 的规范化与构造逻辑;

  • 避免 BoostBattleMutationInterceptorClearBoostsBattleMutationInterceptorboost_from_relayinvert_boost_relay 各自重复实现一套 Map 解析规则;

  • 让能力变化主链对外暴露的上下文字段保持稳定、可预测。

Functions

Link copied to clipboard
fun createOnBoostAttributes(currentBoosts: Map<String, Int>, requestedBoosts: Map<String, Int>, targetRelation: String? = null): Map<String, Any?>

构造 on_boost 标准 attributes。

Link copied to clipboard
fun createOnClearBoostsAttributes(currentBoosts: Map<String, Int>, targetRelation: String? = null): Map<String, Any?>

构造 on_clear_boosts 标准 attributes。

Link copied to clipboard

把任意运行期对象按 boost map 语义规范化成 Map<String, Int>