fix(attr): 修复调试场景因 cpu_limit 基准改为 0 而退化;记录 cast_delay_mod 快照时序
combat_test 绕过 CombatManager 直接 equip_wand,拿不到 _rebuild_wand 注入的 "core" 份额,导致 cpu_limit=0 触发守卫报错、MAX_OPS 由 200 退化为 40。 镜像 _rebuild_wand 的做法在该场景自行注入(先 remove 再 add),仅修本次弄坏 的部分;该场景整体绕过 CombatManager(如从不设 mana_leech)属既有分歧,不在 本次范围内。 _cast_interval 仅在 equip_wand 时快照,install_spell 只调 _rebuild_wand 不调 equip_wand,实际再同步点是每波开战的 _transition_to_battle。行为不改,加注释 记下时序,免得后续属性商店的实现者误以为购买即时生效。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,7 +14,8 @@ var _player_node: Node2D = null
|
||||
var _equipped_core: CoreDefinition = null
|
||||
var _equipped_compiled: CompiledDeck = null
|
||||
var _cast_timer: float = 0.0
|
||||
var _cast_interval: float = 0.5
|
||||
var _cast_interval: float = 0.5 # equip_wand 时快照 core.cast_interval × cast_delay_mod;
|
||||
# 中途改 cast_delay_mod 要到下次 equip_wand(每波开战 _transition_to_battle)才生效
|
||||
|
||||
var _is_moving: bool = false
|
||||
var _stationary_time: float = 0.0
|
||||
|
||||
Reference in New Issue
Block a user