From a119ec9ab1f87bc4d04c21a755f837844b144ba1 Mon Sep 17 00:00:00 2001 From: Joywayer Date: Thu, 30 Jul 2026 17:47:56 +0800 Subject: [PATCH] =?UTF-8?q?docs(arch):=20=E8=A1=A5=E5=88=A0=20ProjectileDe?= =?UTF-8?q?f.reset()=20=E9=87=8C=E9=81=97=E7=95=99=E7=9A=84=20homing=5Ffor?= =?UTF-8?q?ce=20=E8=B5=8B=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 上一提交删了声明与注释、漏了 31 行后 reset() 内的赋值, 导致同一代码块自相矛盾(注释声明该字段不存在,正文仍在赋值)。 Co-Authored-By: Claude Opus 5 --- docs/technical/architecture_design.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/technical/architecture_design.md b/docs/technical/architecture_design.md index c05194b..2943775 100644 --- a/docs/technical/architecture_design.md +++ b/docs/technical/architecture_design.md @@ -230,7 +230,7 @@ var proc_rate: float = 1.0 # Proc 系数(0.0~1.0)。高频攻击 func reset() -> void: base_damage = 5.0; damage_mult = 1.0; damage_type = DamageType.PHYSICAL speed = 600.0; direction = Vector2.RIGHT; spread_angle_rad = 0.0 - homing_force = 0.0; acceleration = 0.0; lifetime = 3.0 + acceleration = 0.0; lifetime = 3.0 pierce_remaining = 0; bounce_remaining = 0 radius = 6.0; size_mult = 1.0 on_hit_payload_id = -1; on_expire_payload_id = -1; on_kill_payload_id = -1