diff options
| author | historia <[not public]> | 2026-07-07 16:24:27 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-07 16:24:27 -0400 |
| commit | ab2597b22ccdb71116992aec78080d9858358d04 (patch) | |
| tree | 8beae4060c2831c4a68f92b682b5350cfa1d0afb /internal/behavior/behavior.go | |
| parent | 3f30fa3eec9c2e2acf9a984ccefb9529a25e688a (diff) | |
| download | thehouseoficarus-ab2597b22ccdb71116992aec78080d9858358d04.tar.gz | |
rename flags to global_flags (differentiate from player_flags)
Diffstat (limited to 'internal/behavior/behavior.go')
| -rw-r--r-- | internal/behavior/behavior.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/behavior/behavior.go b/internal/behavior/behavior.go index 7d8ce8f..ec9fc7c 100644 --- a/internal/behavior/behavior.go +++ b/internal/behavior/behavior.go @@ -43,7 +43,7 @@ type TalkOption struct { } type NodeAction struct { - SetFlags map[string]any `yaml:"set_flags"` + SetGlobalFlags map[string]any `yaml:"set_global_flags"` SetPlayerFlags map[string]any `yaml:"set_player_flags"` GiveItem string `yaml:"give_item"` TakeItem string `yaml:"take_item"` @@ -143,7 +143,7 @@ func (c *ShopConfig) FindItem(itemID string) *ShopItem { } type Condition struct { - Flag string `yaml:"flag"` + GlobalFlag string `yaml:"global_flag"` Value any `yaml:"value"` Not bool `yaml:"not"` PlayerFlag string `yaml:"player_flag"` |
