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