From fbadd980251a582c4ccb4c96cbb89892fd370d55 Mon Sep 17 00:00:00 2001 From: Tabby <41929769+tabby-cat-nya@users.noreply.github.com> Date: Fri, 23 Jan 2026 15:39:27 +1100 Subject: [PATCH] sell cost 10 --- inv_system/sell_panel.gd | 6 +++--- inv_system/sell_panel.tscn | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/inv_system/sell_panel.gd b/inv_system/sell_panel.gd index ac3ff8e..99808bb 100644 --- a/inv_system/sell_panel.gd +++ b/inv_system/sell_panel.gd @@ -29,16 +29,16 @@ func calculate_sell_value(): else: sell_label.text = "Place an item" sell_button.disabled = true - if not Clock.has_time(15): + if not Clock.has_time(10): sell_button.disabled = true func _on_sell_button_pressed() -> void: - if slots[0].item and Clock.has_time(15): + if slots[0].item and Clock.has_time(10): var sell_value : int = floori(slots[0].item.buy_value / float(2)) slots[0].item = null slots[0].update_ui() PlayerInventory.money += sell_value - Clock.use_time(15) + Clock.use_time(10) calculate_sell_value() diff --git a/inv_system/sell_panel.tscn b/inv_system/sell_panel.tscn index 785b84d..b8c18a4 100644 --- a/inv_system/sell_panel.tscn +++ b/inv_system/sell_panel.tscn @@ -55,6 +55,6 @@ text = "1234" [node name="SellButton" type="Button" parent="MarginContainer/VBoxContainer"] layout_mode = 2 -text = "Sell! (Uses 15 time)" +text = "Sell! (Uses 10 time)" [connection signal="pressed" from="MarginContainer/VBoxContainer/SellButton" to="." method="_on_sell_button_pressed"]