diff options
| author | historia <[not public]> | 2026-06-14 22:38:23 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-14 22:38:23 -0400 |
| commit | a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77 (patch) | |
| tree | 89601a502bbfcb50302cf03f09b6febc6040eeb0 /internal/world/room.go | |
| parent | 1aba2bdd23aebed4032333e74aa553c40a31fcbd (diff) | |
| download | thehouseoficarus-a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77.tar.gz | |
feat: fractional ticks and server game_speed implemented. potentially insanely janky.
Diffstat (limited to 'internal/world/room.go')
| -rw-r--r-- | internal/world/room.go | 6 |
1 files changed, 3 insertions, 3 deletions
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"` } |
