aboutsummaryrefslogtreecommitdiff
path: root/internal/behavior/types.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-01 16:37:45 -0400
committerhistoria <[not public]>2026-07-01 16:37:45 -0400
commite6b4cb9f5816c6ee239233bc85f74ee446a161c2 (patch)
tree1c3bf71c8b7f095baae989afe5e33183a7ed3929 /internal/behavior/types.go
parent649ef4b7416ce7053145878841fc9b0bff2f5fec (diff)
downloadthehouseoficarus-e6b4cb9f5816c6ee239233bc85f74ee446a161c2.tar.gz
feat: shop system overhauled, gui conversation tree editor overhauled
Diffstat (limited to 'internal/behavior/types.go')
-rw-r--r--internal/behavior/types.go24
1 files changed, 0 insertions, 24 deletions
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))]
-}