mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(角色): 更新KukeMC角色资源与逻辑
添加KukeMC角色的新动画资源(pico-a.svg, pico-b.svg, pico-c.svg, pico-d.svg) 调整角色基础属性和技能逻辑: - 增加百分比生命值计算方法 - 修改攻击冷却时间和治疗机制 - 优化子弹生成逻辑 - 更新角色纹理和动画帧 - 调整碰撞框大小和位置
This commit is contained in:
@@ -407,6 +407,8 @@ func getItem(items: Dictionary):
|
||||
inventory[item] = clamp(inventory[item] + items[item], 0, inventoryMax[item])
|
||||
func getHealthPercent():
|
||||
return health / fields[FieldStore.Entity.MAX_HEALTH]
|
||||
func percentHealth(percent: float):
|
||||
return fields[FieldStore.Entity.MAX_HEALTH] * percent
|
||||
func getMySummons() -> Array[SummonBase]:
|
||||
var result: Array[SummonBase] = []
|
||||
for entity in get_tree().get_nodes_in_group("players" if isPlayer() else "mobs"):
|
||||
|
||||
Reference in New Issue
Block a user