mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat: 添加多个召唤物的displayName并调整相关参数
refactor: 统一测试BOSS的wave配置 fix: 修正Parrier.gd中的launcher判断条件 perf: 调整MTY的攻击冷却时间和技能范围 style: 移除部分调试标记和冗余代码
This commit is contained in:
@@ -200,8 +200,8 @@ func _physics_process(_delta: float) -> void:
|
||||
ai()
|
||||
elif isSummon():
|
||||
ai()
|
||||
velocity += inertia
|
||||
inertia *= 0.9
|
||||
velocity += inertia
|
||||
inertia *= 0.9
|
||||
move_and_slide()
|
||||
var collision = get_last_slide_collision()
|
||||
if is_instance_valid(collision):
|
||||
|
||||
@@ -2,11 +2,16 @@ extends CanvasItem
|
||||
class_name EntityStateBar
|
||||
|
||||
@export var entity: EntityBase
|
||||
@export var longer: bool = false
|
||||
|
||||
@onready var healthBar: ColorBar = $"%health"
|
||||
@onready var levelLabel: Label = $"%level"
|
||||
@onready var levelLabels: HBoxContainer = $"%levelLabel"
|
||||
|
||||
func _ready():
|
||||
if longer:
|
||||
healthBar.size.x *= 2
|
||||
healthBar.position.x *= 2
|
||||
func forceSync():
|
||||
healthBar.maxValue = entity.fields[FieldStore.Entity.MAX_HEALTH]
|
||||
healthBar.currentValue = entity.health
|
||||
|
||||
Reference in New Issue
Block a user