aboutsummaryrefslogtreecommitdiff
path: root/internal/world/room.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/world/room.go')
-rw-r--r--internal/world/room.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/world/room.go b/internal/world/room.go
index 9b9bef7..af7a712 100644
--- a/internal/world/room.go
+++ b/internal/world/room.go
@@ -199,6 +199,8 @@ func (ro RoomObject) MarshalYAML() (interface{}, error) {
Talk *behavior.TalkConfig `yaml:"talk,omitempty"`
Safespot *object.SafespotConfig `yaml:"safespot,omitempty"`
OnLook []behavior.Trigger `yaml:"on_look,omitempty"`
+ WanderRooms []int `yaml:"wander_rooms,omitempty"`
+ WanderInterval float64 `yaml:"wander_interval,omitempty"`
}
def := ro.Local
return inlineObj{
@@ -215,6 +217,8 @@ func (ro RoomObject) MarshalYAML() (interface{}, error) {
Talk: def.Talk,
Safespot: def.Safespot,
OnLook: def.OnLook,
+ WanderRooms: ro.WanderRooms,
+ WanderInterval: ro.WanderInterval,
}, nil
}
type rawRef struct {