1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-05 19:27:15 +08:00

fix: 调整LGBT武器的能量需求为50,优化能量管理逻辑

This commit is contained in:
2025-09-06 18:01:57 +08:00
parent 90fee56b08
commit 8289b8c273
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -90,8 +90,6 @@ var cooldownTimer = CooldownTimer.new()
var weapons: Array[Weapon] = []
func _ready():
health = fields.get(FieldStore.Entity.MAX_HEALTH)
energy = fields.get(FieldStore.Entity.MAX_ENERGY)
register()
var selfStatebar: EntityStateBar = $"%statebar"
if isBoss:
@@ -99,7 +97,6 @@ func _ready():
else:
statebar = selfStatebar
statebar.entity = self
statebar.forceSync()
if isPlayer():
for i in weaponStore.get_children():
i.hide()
@@ -121,6 +118,10 @@ func _ready():
else:
currentFocusedBoss = get_tree().get_nodes_in_group("players")[0]
applyLevel()
health = fields.get(FieldStore.Entity.MAX_HEALTH)
energy = fields.get(FieldStore.Entity.MAX_ENERGY)
if is_instance_valid(statebar):
statebar.forceSync()
healthChanged.connect(
func(newHealth):
if is_instance_valid(statebar):