aboutsummaryrefslogtreecommitdiff
path: root/internal/item/item.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-01 22:30:31 -0400
committerhistoria <[not public]>2026-07-01 22:30:31 -0400
commitc14c2e403c75a913e1a6d962fb6fe64f013adae5 (patch)
tree75070293fe2535b594ac72e501cbf08a3f1146e0 /internal/item/item.go
parent8eec7b75ff9c8c368b252373db45fb891732d2ca (diff)
downloadthehouseoficarus-c14c2e403c75a913e1a6d962fb6fe64f013adae5.tar.gz
fix: combat formulas and mob attack types (mobs switch attack styles if safespotting)
Diffstat (limited to 'internal/item/item.go')
-rw-r--r--internal/item/item.go58
1 files changed, 29 insertions, 29 deletions
diff --git a/internal/item/item.go b/internal/item/item.go
index 8edae92..77f462a 100644
--- a/internal/item/item.go
+++ b/internal/item/item.go
@@ -91,25 +91,25 @@ type ItemDef struct {
Tool *ToolDef `yaml:"tool,omitempty"`
Requirements map[string]int `yaml:"requirements,omitempty"`
- Quality int `yaml:"quality"`
- MaxQuality int `yaml:"max_quality"`
+ Quality int `yaml:"quality"`
+ MaxQuality int `yaml:"max_quality"`
Craft CraftList `yaml:"craft,omitempty"`
- SearchTable string `yaml:"search_table"`
- SearchTicks float64 `yaml:"search_ticks"`
- SearchMessage string `yaml:"search_message"`
+ SearchTable string `yaml:"search_table"`
+ SearchTicks float64 `yaml:"search_ticks"`
+ SearchMessage string `yaml:"search_message"`
HealValue int `yaml:"heal_value"`
EatMessage string `yaml:"eat_message"`
- FarmPatchType string `yaml:"farm_patch_type"`
- FarmLevel int `yaml:"farm_level"`
- FarmPlantXP int `yaml:"farm_plant_xp"`
- FarmHarvestXP int `yaml:"farm_harvest_xp"`
- FarmStages int `yaml:"farm_stages"`
- FarmProduct string `yaml:"farm_product"`
- FarmMinYield int `yaml:"farm_min_yield"`
- FarmMaxYield int `yaml:"farm_max_yield"`
+ FarmPatchType string `yaml:"farm_patch_type"`
+ FarmLevel int `yaml:"farm_level"`
+ FarmPlantXP int `yaml:"farm_plant_xp"`
+ FarmHarvestXP int `yaml:"farm_harvest_xp"`
+ FarmStages int `yaml:"farm_stages"`
+ FarmProduct string `yaml:"farm_product"`
+ FarmMinYield int `yaml:"farm_min_yield"`
+ FarmMaxYield int `yaml:"farm_max_yield"`
PotionEffect string `yaml:"potion_effect"`
PotionBonus int `yaml:"potion_bonus"`
@@ -276,22 +276,22 @@ type SuccessFormula struct {
}
type CraftDef struct {
- Type string `yaml:"type"`
- Subtype string `yaml:"subtype,omitempty"`
- Level int `yaml:"level"`
- XP int `yaml:"xp"`
- TicksPerCycle float64 `yaml:"ticks_per_cycle"`
- Station []string `yaml:"station"`
- Tool string `yaml:"tool"`
- Ingredients []IngredientEntry `yaml:"ingredients"`
- OutputQty int `yaml:"output_qty"`
- Fail string `yaml:"fail"`
- SuccessMessage string `yaml:"success_message"`
- FailMessage string `yaml:"fail_message"`
- StartMessage string `yaml:"start_message"`
- EndMessage string `yaml:"end_message"`
- Steps []CraftStep `yaml:"steps"`
- Success *SuccessFormula `yaml:"success"`
+ Type string `yaml:"type"`
+ Subtype string `yaml:"subtype,omitempty"`
+ Level int `yaml:"level"`
+ XP int `yaml:"xp"`
+ TicksPerCycle float64 `yaml:"ticks_per_cycle"`
+ Station []string `yaml:"station"`
+ Tool string `yaml:"tool"`
+ Ingredients []IngredientEntry `yaml:"ingredients"`
+ OutputQty int `yaml:"output_qty"`
+ Fail string `yaml:"fail"`
+ SuccessMessage string `yaml:"success_message"`
+ FailMessage string `yaml:"fail_message"`
+ StartMessage string `yaml:"start_message"`
+ EndMessage string `yaml:"end_message"`
+ Steps []CraftStep `yaml:"steps"`
+ Success *SuccessFormula `yaml:"success"`
}
func (c *CraftDef) EffectiveSkill() string {