feat(attr): 接线 MAX_OPS/移速/施法间隔;法杖 cpu_limit 以加成来源接入
MAX_OPS 由硬编码 40×5 改为读生效 cpu_limit——cores.json 里逐法杖配置的
3/5/6/8 自此生效,法杖间恢复运算力区分度。玩家基准取 0,故小木法杖仍为
5 → 200 步,现有平衡零改动。
法杖份额走 add_modifier 而非调用点相加:否则 hard(50) 只钳制玩家那一份,
法杖份额加在钳制之后可使总值越界。换杖时先 remove_modifiers_from("core")
再 add,防止累积。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -269,6 +269,9 @@ func _rebuild_wand() -> void:
|
||||
if n != null:
|
||||
leech += float(n.meta.get("mana_leech", 0.0))
|
||||
PlayerStats.mana_leech = leech
|
||||
# 法杖运算力以加成来源接入(非调用点相加),使 hard 上限作用于生效总值
|
||||
PlayerStats.remove_modifiers_from("core")
|
||||
PlayerStats.add_modifier("cpu_limit", "flat", float(_equipped_core.cpu_limit) if _equipped_core else 0.0, "core")
|
||||
|
||||
# ── 法杖存档(ProfileManager A/B 槽,ADR-A2)─────────────────
|
||||
func get_wand_save_data() -> Dictionary:
|
||||
|
||||
Reference in New Issue
Block a user