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 29cce0b..2da40fb 100644 --- a/internal/world/room.go +++ b/internal/world/room.go @@ -78,7 +78,7 @@ type ExitDef struct { Room int `yaml:"room"` Condition *behavior.Condition `yaml:"condition,omitempty"` BlockedMessage string `yaml:"blocked_message,omitempty"` - SetFlags map[string]any `yaml:"set_flags,omitempty"` + SetGlobalFlags map[string]any `yaml:"set_global_flags,omitempty"` SetPlayerFlags map[string]any `yaml:"set_player_flags,omitempty"` Hidden bool `yaml:"hidden,omitempty"` AlwaysBlocked bool `yaml:"always_blocked,omitempty"` @@ -135,7 +135,7 @@ type EnterStep struct { Message string `yaml:"message"` Condition *behavior.Condition `yaml:"condition"` Delay int `yaml:"delay"` - SetFlags map[string]any `yaml:"set_flags"` + SetGlobalFlags map[string]any `yaml:"set_global_flags"` SetPlayerFlags map[string]any `yaml:"set_player_flags"` Broadcast string `yaml:"broadcast"` BroadcastGlobal string `yaml:"broadcast_global"` @@ -151,7 +151,7 @@ type EnterStep struct { // non-zero field means it needs per-tick scheduling rather than synchronous // printing). func (e EnterStep) IsTimed() bool { - return e.Delay > 0 || len(e.SetFlags) > 0 || len(e.SetPlayerFlags) > 0 || + return e.Delay > 0 || len(e.SetGlobalFlags) > 0 || len(e.SetPlayerFlags) > 0 || e.Message != "" || e.Broadcast != "" || e.BroadcastGlobal != "" || e.SpawnMob != nil || e.DespawnMob != "" || e.GiveItem != "" || e.TakeItem != "" || e.Teleport != 0 || e.Heal != 0 |
