From e2570491aab1d4002928c487b4270dfb4264a5b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=A8=E8=90=BD=E5=9F=BA=E5=9B=B4=E8=99=BE?= <3161880837@qq.com> Date: Sat, 8 Nov 2025 07:32:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=AD=A6=E5=99=A8):=20=E6=B7=BB=E5=8A=A0H?= =?UTF-8?q?JM=E6=AD=A6=E5=99=A8=E8=84=9A=E6=9C=AC=E5=8F=8AUID=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加HJM武器的Godot脚本文件,包含攻击力和冷却时间的升级逻辑 --- scripts/Contents/Weapons/HJM.gd | 6 ++++++ scripts/Contents/Weapons/HJM.gd.uid | 1 + 2 files changed, 7 insertions(+) create mode 100644 scripts/Contents/Weapons/HJM.gd create mode 100644 scripts/Contents/Weapons/HJM.gd.uid diff --git a/scripts/Contents/Weapons/HJM.gd b/scripts/Contents/Weapons/HJM.gd new file mode 100644 index 0000000..e384fc3 --- /dev/null +++ b/scripts/Contents/Weapons/HJM.gd @@ -0,0 +1,6 @@ +@tool +extends Weapon + +func update(to: int, origin: Dictionary, _entity: EntityBase): + origin["time"] /= 1 + 0.05 * to * soulLevel + origin["atk"] *= 2 * to * soulLevel diff --git a/scripts/Contents/Weapons/HJM.gd.uid b/scripts/Contents/Weapons/HJM.gd.uid new file mode 100644 index 0000000..14e41a2 --- /dev/null +++ b/scripts/Contents/Weapons/HJM.gd.uid @@ -0,0 +1 @@ +uid://crx7hojhwqlyl