J3b: chat, the player list (with each player's land) and admin commands across lands; sleep needs everyone in every land, with a 'waiting for everyone else' message

This commit is contained in:
Paul Bailey
2026-11-06 23:42:50 +00:00
parent 85bbed249b
commit 86ebe07899
9 changed files with 404 additions and 27 deletions

View File

@@ -269,7 +269,8 @@ func _sleeping() -> void:
await _sleep(0.5)
A.use_bed(player, beds[0])
await _sleep(1.0)
check(_toasts.any(func(t): return t.begins_with("You're in bed (1 of 2")), "Alice gets into bed: 1 of 2 asleep (%s)" % [_toasts])
check(_toasts.any(func(t): return t == "You're in bed: waiting for everyone else to go to bed (1 of 2 asleep)"),
"Alice gets into bed: waiting for the others, 1 of 2 asleep (%s)" % [_toasts])
check(world.day_night.hours() > 20.5, "and the night goes on, because Bob's still up")
await _bob({"do": "bed", "nid": WN.nid(beds[1])})
await _bob({"do": "bed", "nid": WN.nid(beds[1])})