Uses for every material (clay jar, bedroll, pelt rug, fang necklace, bear cloak, pemmican, bait), Q to drop, K/M bag rows on 1-8, help pages; protocol 14

This commit is contained in:
Paul Bailey
2026-11-06 11:49:42 +00:00
parent 5778d61763
commit 4b2e687188
29 changed files with 1457 additions and 40 deletions

View File

@@ -83,6 +83,17 @@ func _do(cmd: Dictionary) -> Dictionary:
var ok: bool = pk != null and root.get_node("Actions").pickup(player, pk)
await create_timer(0.6).timeout
return {"asked": ok, "inv": player.inventory.to_data()}
"drop":
# Q on the first stack of cmd.item (count 0: the whole stack).
var slot := -1
for i in range(player.inventory.size()):
var st = player.inventory.get_slot(i)
if st != null and st.id == String(cmd.item):
slot = i
break
var asked: bool = slot >= 0 and root.get_node("Actions").drop(player, slot, int(cmd.get("count", 0)))
await create_timer(0.6).timeout
return {"asked": asked, "inv": player.inventory.to_data()}
"chest_take":
var c: Node3D = WN.pieces.get(int(cmd.nid))
if c == null: