1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-31 00:11:54 +08:00

fix: 移除调试打印并修正武器灵魂提取逻辑

移除EntityBase.gd中的调试打印语句
修正Weapon.gd中灵魂提取逻辑,现在仅在灵魂等级高于正常值时提取,并减少灵魂等级
This commit is contained in:
2025-09-20 07:03:55 +08:00
parent 06fdfd1586
commit 32468c136b
2 changed files with 6 additions and 5 deletions
+6 -4
View File
@@ -44,10 +44,12 @@ func _ready():
)
extractBtn.pressed.connect(
func():
UIState.player.getItem({
ItemStore.ItemType.SOUL: ceil((1 + soulLevel) * soulLevel / 2.0)
})
soulLevel = 1
if soulLevel > WeaponName.SoulLevel.NORMALIZE:
UIState.player.getItem({
ItemStore.ItemType.SOUL: soulLevel
})
soulLevel -= 1
rebuildInfo()
)
inlayBtn.pressed.connect(
func():