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

feat(子弹): 为扫帚炮添加追踪开关并调整相关参数

- 在BroomGun中添加canTrace导出变量控制追踪功能
- 调整Broom子弹的碰撞体大小和位置
- 修改EnergyBlock中Broom子弹的速度倍率从2改为3
- 在BroomGun动画中添加canTrace状态控制
This commit is contained in:
2026-05-01 12:50:27 +08:00
parent 6d51795c54
commit c3e5e81a61
4 changed files with 38 additions and 7 deletions
+4 -1
View File
@@ -1,7 +1,10 @@
extends BulletBase
class_name BroomGun
@export var canTrace: bool = true
func shake():
CameraManager.shake(2000, 200)
func ai():
PresetBulletAI.trace(self , launcher.currentFocusedPosition, 0.05)
if canTrace:
PresetBulletAI.trace(self , launcher.currentFocusedPosition, 0.05)
+2 -2
View File
@@ -45,11 +45,11 @@ func attack(type: int):
elif type == 3:
for bullet in BulletBase.generate(ComponentManager.getBullet("Broom"), self , getTrackingAnchor(), 0):
if bullet is BroomBullet:
fields[FieldStore.Entity.MOVEMENT_SPEED] *= 2
fields[FieldStore.Entity.MOVEMENT_SPEED] *= 3
await TickTool.frame()
bullet.animator.play("rotate")
await bullet.destroied
fields[FieldStore.Entity.MOVEMENT_SPEED] /= 2
fields[FieldStore.Entity.MOVEMENT_SPEED] /= 3
elif type == 4:
BulletBase.generate(ComponentManager.getBullet("BroomBoomerang"), self , position, position.angle_to_point(currentFocusedPosition))
elif type == 5: