1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-07-10 03:52:53 +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
-1
View File
@@ -355,7 +355,6 @@ func hasItem(items: Dictionary):
return false return false
return true return true
func useItem(items: Dictionary): func useItem(items: Dictionary):
print(items)
var state = hasItem(items) var state = hasItem(items)
if state: if state:
for item in items: for item in items:
+6 -4
View File
@@ -44,10 +44,12 @@ func _ready():
) )
extractBtn.pressed.connect( extractBtn.pressed.connect(
func(): func():
UIState.player.getItem({ if soulLevel > WeaponName.SoulLevel.NORMALIZE:
ItemStore.ItemType.SOUL: ceil((1 + soulLevel) * soulLevel / 2.0) UIState.player.getItem({
}) ItemStore.ItemType.SOUL: soulLevel
soulLevel = 1 })
soulLevel -= 1
rebuildInfo()
) )
inlayBtn.pressed.connect( inlayBtn.pressed.connect(
func(): func():