mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-10 20:12: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,17 +43,18 @@ func _physics_process(_delta):
|
|||||||
bossbar.visible = true
|
bossbar.visible = true
|
||||||
itemsContainer.visible = true
|
itemsContainer.visible = true
|
||||||
energyContainer.visible = true
|
energyContainer.visible = true
|
||||||
if Input.is_action_just_pressed("showFields"):
|
if !fieldsAnimator.is_playing():
|
||||||
for i in fields.get_children():
|
if Input.is_action_just_pressed("showFields"):
|
||||||
fields.remove_child(i)
|
for i in fields.get_children():
|
||||||
for i in player.fields:
|
fields.remove_child(i)
|
||||||
if player.fields[i] == EntityBase.TITLE_FLAG:
|
for i in player.fields:
|
||||||
fields.add_child(QuickUI.graySmallText(i))
|
if player.fields[i] == EntityBase.TITLE_FLAG:
|
||||||
else:
|
fields.add_child(QuickUI.graySmallText(i))
|
||||||
fields.add_child(FieldShow.create(i, player.fields[i], false, player, true))
|
else:
|
||||||
fieldsAnimator.play("show")
|
fields.add_child(FieldShow.create(i, player.fields[i], false, player, true))
|
||||||
if Input.is_action_just_released("showFields"):
|
fieldsAnimator.play("show")
|
||||||
fieldsAnimator.play("hide")
|
if Input.is_action_just_released("showFields"):
|
||||||
|
fieldsAnimator.play("hide")
|
||||||
if Input.is_action_just_pressed("pause"):
|
if Input.is_action_just_pressed("pause"):
|
||||||
if currentPanel:
|
if currentPanel:
|
||||||
if currentPanel is MakeFeedPanel:
|
if currentPanel is MakeFeedPanel:
|
||||||
|
|||||||
Reference in New Issue
Block a user