aboutsummaryrefslogtreecommitdiff
path: root/internal/behavior/types.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/behavior/types.go')
-rw-r--r--internal/behavior/types.go47
1 files changed, 31 insertions, 16 deletions
diff --git a/internal/behavior/types.go b/internal/behavior/types.go
index c061742..571f2c4 100644
--- a/internal/behavior/types.go
+++ b/internal/behavior/types.go
@@ -55,6 +55,7 @@ const (
TypeMix ActionType = "mix"
TypeConstruct ActionType = "construct"
TypeTriggerModule ActionType = "trigger_module"
+ TypeUseInteraction ActionType = "use_interaction"
)
type Action struct {
@@ -85,14 +86,12 @@ type GatherData struct {
}
type ProductionData struct {
- ItemID string
- Phase int
- Wait float64
- StartMsg string
- EndMsg string
- Remaining int
- NextStepIndex int
- StepsAccumulatedTicks float64
+ ItemID string
+ Phase int
+ Wait float64
+ StartMessage string
+ EndMessage string
+ Remaining int
}
type StealData struct {
@@ -126,6 +125,12 @@ type UseData struct {
Step int
}
+type UseInteractionData struct {
+ Message string
+ Action *NodeAction
+ ObjName string
+}
+
type BurnData struct {
ItemID string
ToolSpeed float64
@@ -172,6 +177,16 @@ type SearchData struct {
Started bool
}
+type CombineData struct {
+ ItemID string
+ Phase int
+ StepIndex int
+ Remaining int
+ StartMessage string
+ EndMessage string
+ Wait float64
+}
+
type FletchData struct {
ItemID string
Phase int
@@ -196,14 +211,14 @@ type TriggerModuleData struct {
}
type DropEntry struct {
- ItemID string `yaml:"item_id"`
- Table string `yaml:"table"`
- Weight int `yaml:"weight"`
- Quantity int `yaml:"quantity"`
- Depletes bool `yaml:"depletes"`
- Message string `yaml:"message"`
- Level int `yaml:"level"`
- XP int `yaml:"xp"`
+ ItemID string `yaml:"item_id"`
+ Table string `yaml:"table"`
+ Weight int `yaml:"weight"`
+ Quantity int `yaml:"quantity"`
+ Depletes bool `yaml:"depletes"`
+ SuccessMessage string `yaml:"success_message"`
+ Level int `yaml:"level"`
+ XP int `yaml:"xp"`
}
type DropTableDef struct {