M2.5: wildlife, wolves, hunting, fishing and sleeping on the server

This commit is contained in:
Paul Bailey
2026-11-04 21:25:10 +00:00
parent 26be17b05f
commit a211fe4c63
20 changed files with 1258 additions and 88 deletions

View File

@@ -68,7 +68,7 @@ func _body() -> void:
var sp: Vector3 = Net.world_info.spawn
check(Vector2(player.global_position.x - sp.x, player.global_position.z - sp.z).length() < 1.0, "Alice starts where the server put her")
check(not world.creatures.enabled and world.creatures.alive().is_empty() and world.wolves == null,
"no local-only animals while online (the server will run them in M2.5)")
"no animals of her game's own while online (the server runs them: test_net_life.gd)")
check(world.day_night.day == int(Net.world_info.day) and absf(world.day_night.time - float(Net.world_info.time)) < 0.01,
"the clock follows the server (%s)" % world.day_night.clock_text())