mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-02 09:21:54 +08:00
feat(子弹): 新增狐狸爪子弹及其相关功能
添加FoxZhua子弹类型,包含追踪功能 修改FireScan子弹伤害计算方式为基于距离百分比 扩展BulletBase添加原始伤害和距离计算功能 更新Chick角色使用新子弹和调整攻击逻辑 调整Wave生成逻辑添加Boss检测功能 优化FirePot粒子效果和参数
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
extends BulletBase
|
||||
class_name FireScan
|
||||
|
||||
func register():
|
||||
speed = 10
|
||||
damage = 20
|
||||
|
||||
func ai():
|
||||
PresetBulletAI.forward(self, rotation)
|
||||
damage = (1 - lifeDistancePercent()) * originalDamage
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
extends BulletBase
|
||||
|
||||
@export var canTrace: bool = true
|
||||
|
||||
func ai():
|
||||
if canTrace:
|
||||
PresetBulletAI.lerpPosition(self, launcher.currentFocusedBoss.getTrackingAnchor() - Vector2(0, 200), 0.1)
|
||||
@@ -0,0 +1 @@
|
||||
uid://e2doeocb745a
|
||||
Reference in New Issue
Block a user