ConsumeItemBattleMutationInterceptor

道具消耗 mutation 的生命周期拦截器。

设计意图:

  • ConsumeItemMutation 真正把 itemId 清空前,为目标派发 on_consume_item

  • 让目标身上的 ability / status / condition 等效果有机会阻止这次消耗;

  • 只有当前目标确实持有道具时,才认为这次生命周期成立。

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val order: Int = 525

当前拦截器在链中的执行顺序;值越小越先执行。

Functions

Link copied to clipboard

拦截当前 mutation。

Link copied to clipboard
open override fun supports(mutation: BattleMutation): Boolean

判断当前拦截器是否负责处理给定 mutation。