From a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 14 Jun 2026 22:38:23 -0400 Subject: feat: fractional ticks and server game_speed implemented. potentially insanely janky. --- internal/world/room.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/world/room.go') diff --git a/internal/world/room.go b/internal/world/room.go index 46fb876..16fd3fd 100644 --- a/internal/world/room.go +++ b/internal/world/room.go @@ -43,7 +43,7 @@ var ExitOrder = []ExitDir{ type SpawnDef struct { ItemID string `yaml:"item_id"` Quantity int `yaml:"quantity"` - RespawnTicks int `yaml:"respawn_ticks"` + RespawnTicks float64 `yaml:"respawn_ticks"` } type ExitDef struct { @@ -80,7 +80,7 @@ type Room struct { type RoomMob struct { ID string `yaml:"id"` WanderRooms []int `yaml:"wander_rooms"` - WanderInterval int `yaml:"wander_interval"` + WanderInterval float64 `yaml:"wander_interval"` } func (rm *RoomMob) UnmarshalYAML(value *yaml.Node) error { @@ -104,5 +104,5 @@ type EnterStep struct { type RoomObject struct { ID string `yaml:"id"` WanderRooms []int `yaml:"wander_rooms"` - WanderInterval int `yaml:"wander_interval"` + WanderInterval float64 `yaml:"wander_interval"` } -- cgit v1.2.3