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:
@@ -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