aboutsummaryrefslogtreecommitdiff
path: root/internal/behavior
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-07 16:24:27 -0400
committerhistoria <[not public]>2026-07-07 16:24:27 -0400
commitab2597b22ccdb71116992aec78080d9858358d04 (patch)
tree8beae4060c2831c4a68f92b682b5350cfa1d0afb /internal/behavior
parent3f30fa3eec9c2e2acf9a984ccefb9529a25e688a (diff)
downloadthehouseoficarus-ab2597b22ccdb71116992aec78080d9858358d04.tar.gz
rename flags to global_flags (differentiate from player_flags)
Diffstat (limited to 'internal/behavior')
-rw-r--r--internal/behavior/behavior.go4
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"`