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

feat(角色): 添加小鸡角色濒死音效并调整属性

添加新的音效资源并修改小鸡角色的属性配置:
1. 新增濒死音效"Dun Dun Dunnn.wav"和受伤音效"foxhurt.mp3"
2. 将小鸡最大生命值从1500调整为15
3. 添加濒死状态检测,当生命值低于10%时播放特殊音效
4. 调整粒子效果和状态栏位置
This commit is contained in:
2025-11-16 16:31:50 +08:00
parent a27e36a384
commit c3ab252c41
6 changed files with 63 additions and 6 deletions
+9 -1
View File
@@ -3,8 +3,10 @@ class_name Chick
@onready var firepot = $"%firepot"
var played: bool = false
func register():
fields[FieldStore.Entity.MAX_HEALTH] = 1500
fields[FieldStore.Entity.MAX_HEALTH] = 15
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.4
attackCooldownMap[0] = 400
attackCooldownMap[1] = 12000
@@ -12,6 +14,12 @@ func register():
attackCooldownMap[3] = 3000
attackCooldownMap[4] = 4000
sprintMultiplier = 50
healthChanged.connect(
func(h):
if !played and h <= fields.get(FieldStore.Entity.MAX_HEALTH) * 0.1:
played = true
playSound("readyToDie")
)
func spawn():
texture.play("walk")