scavenge book working, fixed issue with blocked slots

This commit is contained in:
Tabby 2026-01-12 20:20:16 +11:00
parent c952938134
commit ab71f15b82
3 changed files with 27 additions and 4 deletions

View file

@ -12,6 +12,8 @@ func _ready() -> void:
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
if Input.is_action_pressed("quick_move") and hovered_slot:
if hovered_slot.block_taking:
return
# figure out what the "other" inventory is and move it
var current_inv : String = hovered_slot.type
var target_inv : Inventory