aboutsummaryrefslogtreecommitdiff
path: root/internal/object/object.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/object/object.go')
-rw-r--r--internal/object/object.go26
1 files changed, 13 insertions, 13 deletions
diff --git a/internal/object/object.go b/internal/object/object.go
index fb93b98..5dbe1cd 100644
--- a/internal/object/object.go
+++ b/internal/object/object.go
@@ -6,26 +6,26 @@ type ObjectSteal struct {
Drops []behavior.DropEntry `yaml:"drops,omitempty"`
Level int `yaml:"level"`
XP int `yaml:"xp"`
- Speed float64 `yaml:"speed"`
- GuardMob string `yaml:"guard_mob,omitempty"`
+ Speed float64 `yaml:"speed"`
+ GuardMob string `yaml:"guard_mob,omitempty"`
}
type ObjectDef struct {
- ID string `yaml:"id"`
- Name string `yaml:"name"`
- Aliases []string `yaml:"aliases"`
- Color string `yaml:"color"`
- Hidden bool `yaml:"hidden"`
- InRoomDescription string `yaml:"inroom_description"`
- RemovalItem string `yaml:"removal_item"`
- Description behavior.DescList `yaml:"description"`
- OnUse []behavior.Interaction `yaml:"on_use,omitempty"`
- Steal *ObjectSteal `yaml:"steal,omitempty"`
+ ID string `yaml:"id"`
+ Name string `yaml:"name"`
+ Aliases []string `yaml:"aliases"`
+ Color string `yaml:"color"`
+ Hidden bool `yaml:"hidden"`
+ InRoomDescription string `yaml:"inroom_description"`
+ RemovalItem string `yaml:"removal_item"`
+ Description behavior.DescList `yaml:"description"`
+ OnUse []behavior.Trigger `yaml:"on_use,omitempty"`
+ Steal *ObjectSteal `yaml:"steal,omitempty"`
Gather *behavior.GatherConfig `yaml:"gather,omitempty"`
Talk *behavior.TalkConfig `yaml:"talk,omitempty"`
Safespot *SafespotConfig `yaml:"safespot,omitempty"`
- OnLook []behavior.Interaction `yaml:"on_look,omitempty"`
+ OnLook []behavior.Trigger `yaml:"on_look,omitempty"`
}
type SafespotConfig struct {