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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user