1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

fix: 调整MuyangDog的子弹检测范围并修复UIState字段显示问题

修复MuyangDog角色子弹检测范围从400减少到300以平衡游戏难度
在UIState中添加字段动画播放状态检查,防止动画冲突
This commit is contained in:
2026-05-05 06:54:09 +08:00
parent 30527a18a8
commit cc103f274b
2 changed files with 13 additions and 12 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ func ai():
super.ai() super.ai()
if parryCounter.isCooldowned(): if parryCounter.isCooldowned():
var track = getTrackingAnchor() var track = getTrackingAnchor()
var bullet = BulletTool.findClosetBulletCanDamage(track, get_tree(), self , 400) var bullet = BulletTool.findClosetBulletCanDamage(track, get_tree(), self , 300)
if is_instance_valid(bullet): if is_instance_valid(bullet):
BulletBase.generate(ComponentManager.getBullet("Parrier"), self , track, track.angle_to_point(bullet.position)) BulletBase.generate(ComponentManager.getBullet("Parrier"), self , track, track.angle_to_point(bullet.position))
parryCounter.start() parryCounter.start()
+1
View File
@@ -43,6 +43,7 @@ func _physics_process(_delta):
bossbar.visible = true bossbar.visible = true
itemsContainer.visible = true itemsContainer.visible = true
energyContainer.visible = true energyContainer.visible = true
if !fieldsAnimator.is_playing():
if Input.is_action_just_pressed("showFields"): if Input.is_action_just_pressed("showFields"):
for i in fields.get_children(): for i in fields.get_children():
fields.remove_child(i) fields.remove_child(i)