diff --git a/scripts/Statemachine/EntityBase.gd b/scripts/Statemachine/EntityBase.gd index 00fa229..d7e2dcb 100644 --- a/scripts/Statemachine/EntityBase.gd +++ b/scripts/Statemachine/EntityBase.gd @@ -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: diff --git a/scripts/Structs/Weapon.gd b/scripts/Structs/Weapon.gd index 9890c86..a6f11dc 100644 --- a/scripts/Structs/Weapon.gd +++ b/scripts/Structs/Weapon.gd @@ -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():