M2.6: server rules (PvP, raiding, locks and friends, death penalty, difficulty, wolf grace), chat, admin commands, server console
This commit is contained in:
@@ -307,8 +307,12 @@ func _containers_and_fires() -> void:
|
||||
var s = _chest.inventory.get_slot(i)
|
||||
if s != null and s.id == "wood":
|
||||
slot = i
|
||||
# (Chests are locked to their owner and friends by default: M2.6.)
|
||||
root.get_node("Chat").say("/friend Bob")
|
||||
await _sleep(0.5)
|
||||
var took := await _bob({"do": "chest_take", "nid": nid, "slot": slot})
|
||||
check(_count(took.get("inv", []), "wood") == 10, "Bob takes the wood out (shift-click)")
|
||||
check(_count(took.get("inv", []), "wood") == 10, "Bob (her friend) takes the wood out (shift-click)")
|
||||
root.get_node("Chat").say("/unfriend Bob") # (friends can loot each other's graves too)
|
||||
await _sleep(0.3)
|
||||
check(_chest.inventory.count("wood") == 0 and _chest.inventory.count("stone") == 3, "and it's gone from Alice's view of the chest")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user