1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00

feat(武器): 调整LGBT武器冷却时间并添加爆炸效果

- 将LGBT武器的冷却时间从2000ms减少到500ms
- 移除子弹的固定伤害值,改为在销毁时创建爆炸效果
- 为爆炸效果添加粒子系统,包含彩虹渐变和随机方向
This commit is contained in:
2025-09-06 09:08:28 +08:00
parent 6cf3c409e3
commit 65ef6dd5bb
3 changed files with 53 additions and 3 deletions
+2 -1
View File
@@ -7,7 +7,6 @@ var tracePower: float
func register():
speed = 1
damage = 5
func ai():
texture.rotation_degrees += speed
speed *= 1.05
@@ -15,3 +14,5 @@ func ai():
if is_instance_valid(tracer) and timeLived() < maxTraceTime:
PresetAIs.trace(self, tracer.position, clamp(speed / 50 * tracePower, 0, 1))
PresetAIs.forward(self, rotation)
func destroy(_b):
EffectController.create(preload("res://components/Effects/LGBTBoom.tscn"), position).shot()