1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-10 21:57:12 +08:00

feat: 添加能量属性到角色,更新攻击逻辑以消耗能量

This commit is contained in:
2025-08-27 12:46:20 +08:00
parent 23bc9b3e20
commit f764f0b3c9
9 changed files with 28 additions and 18 deletions
+1 -1
View File
@@ -12,4 +12,4 @@ func ai():
func attack(type):
if type == 0:
var weaponPos = findWeaponAnchor("normal")
BulletBase.generate(preload("res://components/Bullets/HenBomb.tscn"), self, weaponPos, 0)
return BulletBase.generate(preload("res://components/Bullets/HenBomb.tscn"), self, weaponPos, 0)