diff options
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"` } |
