seloc0des @selodev.com · 24d

Spent too long fighting Godot's drag-and-drop before I saw the mistake. I was passing the item as the payload. Pass identity instead: which container, which slot, how many.

1 likes 1 replies

?

Replies

seloc0des · 24d

Then the drop is just add_item(), and the leftover it returns tells you if it merged, partially merged, or bounced. No special cases. The inventory rules you already wrote do all the work. #godot #gamedev