mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-06-05 11:17:13 +08:00
fix: 移除调试打印并修正武器灵魂提取逻辑
移除EntityBase.gd中的调试打印语句 修正Weapon.gd中灵魂提取逻辑,现在仅在灵魂等级高于正常值时提取,并减少灵魂等级
This commit is contained in:
@@ -355,7 +355,6 @@ func hasItem(items: Dictionary):
|
||||
return false
|
||||
return true
|
||||
func useItem(items: Dictionary):
|
||||
print(items)
|
||||
var state = hasItem(items)
|
||||
if state:
|
||||
for item in items:
|
||||
|
||||
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user