feature complete prototype almost done!

This commit is contained in:
Tabby 2026-01-14 20:10:03 +11:00
parent 93cc1a8c59
commit af8662fd6a
21 changed files with 327 additions and 41 deletions

View file

@ -28,13 +28,16 @@ func calculate_sell_value():
else:
sell_label.text = "Place an item"
sell_button.disabled = true
if not Clock.has_time(15):
sell_button.disabled = true
func _on_sell_button_pressed() -> void:
if slots[0].item:
if slots[0].item and Clock.has_time(15):
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)
calculate_sell_value()