mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-29 23:41:54 +08:00
fix(EffectController): 修复oneShot效果后未释放自身的问题
feat(EntityBase): 添加获取生命值百分比的方法 refactor(BulletBase): 重命名scene变量为parentScene以提高可读性 fix(BlueCrystal): 修正弹道追踪旋转计算错误 style(EffectBase): 调整场景文件格式和属性顺序
This commit is contained in:
@@ -400,6 +400,8 @@ func useItem(items: Dictionary):
|
||||
func getItem(items: Dictionary):
|
||||
for item in items:
|
||||
inventory[item] = clamp(inventory[item] + items[item], 0, inventoryMax[item])
|
||||
func getHealthPercent():
|
||||
return health / fields[FieldStore.Entity.MAX_HEALTH]
|
||||
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