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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user