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:
@@ -341,7 +341,7 @@ func _run(p: Node3D, what: String, a: Array) -> void:
|
||||
WorldNet.piece_state(f)
|
||||
"bed":
|
||||
var b := WorldNet.piece(_i(a, 0))
|
||||
if b != null and b.item_id == "bed" and _allowed(Rules.use_problem(p.player_id, b)):
|
||||
if b != null and b.is_in_group("bed") and _allowed(Rules.use_problem(p.player_id, b)):
|
||||
Actions.use_bed(p, b)
|
||||
"inv_click":
|
||||
# Slot `a[1]` of your own inventory (a[0] = 0) or a chest's.
|
||||
@@ -365,6 +365,10 @@ func _run(p: Node3D, what: String, a: Array) -> void:
|
||||
var slot := _i(a, 1)
|
||||
if slot >= 0 and slot < from.size():
|
||||
Actions.transfer(p, from, slot, to, c)
|
||||
"drop":
|
||||
var ds := _i(a, 0)
|
||||
if ds >= 0 and ds < p.inventory.size():
|
||||
Actions.drop(p, ds, _i(a, 1))
|
||||
"close":
|
||||
# The inventory screen closed: what's on the cursor goes back in
|
||||
# your bag, or at your feet if it's full.
|
||||
|
||||
Reference in New Issue
Block a user