mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(角色): 添加狗角色音效和攻击冷却随机化
添加狗角色的受伤音效文件并配置导入设置 修改狗的攻击冷却时间为3000-5000毫秒随机值 调整狗角色的受伤音效播放几率为30% 为狗角色添加碰撞检测形状
This commit is contained in:
@@ -4,7 +4,7 @@ func register():
|
||||
fields[FieldStore.Entity.MAX_HEALTH] = 120
|
||||
fields[FieldStore.Entity.MOVEMENT_SPEED] = 0.2
|
||||
fields[FieldStore.Entity.OFFSET_SHOOT] = 0
|
||||
attackCooldownMap[0] = 2000
|
||||
attackCooldownMap[0] = randi_range(3000, 5000)
|
||||
|
||||
func ai():
|
||||
PresetEntityAI.follow(self, currentFocusedBoss, 300)
|
||||
|
||||
Reference in New Issue
Block a user