From fbe5090ac3325ff8ea6989cdf4515c7f077c975b Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 1 Jul 2026 03:21:52 -0400 Subject: feat: item messaging standardized, custom messages for production paths implemented --- internal/behavior/types.go | 47 ++++++++++++++++++++++++++++++---------------- 1 file changed, 31 insertions(+), 16 deletions(-) (limited to 'internal/behavior/types.go') 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 { -- cgit v1.2.3