From 79d7ed4efe7ad4463480e691fcdc211b5df96afa 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: Mon, 13 Apr 2026 23:08:46 +0800 Subject: [PATCH] =?UTF-8?q?feat(Weapon):=20=E6=B7=BB=E5=8A=A0HOLD=5FONCE?= =?UTF-8?q?=E5=8F=91=E5=B0=84=E7=B1=BB=E5=9E=8B=E5=B9=B6=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E5=BA=9F=E5=BC=83=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除已注释掉的chargable和oneShoot属性,这些功能现在由emitType枚举控制 --- scripts/Structs/Weapon.gd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/Structs/Weapon.gd b/scripts/Structs/Weapon.gd index 4179530..04d6d25 100644 --- a/scripts/Structs/Weapon.gd +++ b/scripts/Structs/Weapon.gd @@ -5,7 +5,8 @@ class_name Weapon enum EmitType { HOLD_SHOOT, CLICK_SHOOT, - CHARGE + CHARGE, + HOLD_ONCE } @export var avatarTexture: Texture2D = null @@ -14,8 +15,6 @@ enum EmitType { @export var typeTopic: WeaponName.TypeTopic = WeaponName.TypeTopic.IMPACT @export var soulLevel: int = 1 @export var costBeachball: int = 500 -# @export var chargable: bool = false -# @export var oneShoot: bool = false @export var emitType: EmitType = EmitType.HOLD_SHOOT @export var store: Dictionary = { "atk": 10