From e6b4cb9f5816c6ee239233bc85f74ee446a161c2 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 1 Jul 2026 16:37:45 -0400 Subject: feat: shop system overhauled, gui conversation tree editor overhauled --- internal/behavior/types.go | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'internal/behavior/types.go') diff --git a/internal/behavior/types.go b/internal/behavior/types.go index c59a95e..29e2631 100644 --- a/internal/behavior/types.go +++ b/internal/behavior/types.go @@ -1,10 +1,7 @@ package behavior import ( - "math/rand" "strings" - - "gopkg.in/yaml.v3" ) func WordPrefixMatch(input, name string) bool { @@ -224,24 +221,3 @@ type DropEntry struct { type DropTableDef struct { Drops []DropEntry `yaml:"drops"` } - -type MessageList []string - -func (ml *MessageList) UnmarshalYAML(value *yaml.Node) error { - if value.Kind == yaml.ScalarNode { - var s string - if err := value.Decode(&s); err != nil { - return err - } - *ml = MessageList{s} - return nil - } - return value.Decode((*[]string)(ml)) -} - -func (ml MessageList) Pick() string { - if len(ml) == 0 { - return "" - } - return ml[rand.Intn(len(ml))] -} -- cgit v1.2.3