diff options
Diffstat (limited to 'internal/item')
| -rw-r--r-- | internal/item/item.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/item/item.go b/internal/item/item.go index 77f462a..93f736b 100644 --- a/internal/item/item.go +++ b/internal/item/item.go @@ -57,7 +57,7 @@ type DefenseBonuses struct { type OtherBonuses struct { Strength int `yaml:"strength,omitempty"` - Ranged int `yaml:"ranged,omitempty"` + RangedStrength int `yaml:"ranged_strength,omitempty"` Science int `yaml:"science,omitempty"` Technology int `yaml:"technology,omitempty"` } @@ -91,7 +91,6 @@ type ItemDef struct { Tool *ToolDef `yaml:"tool,omitempty"` Requirements map[string]int `yaml:"requirements,omitempty"` - Quality int `yaml:"quality"` MaxQuality int `yaml:"max_quality"` Craft CraftList `yaml:"craft,omitempty"` @@ -207,7 +206,7 @@ func (d *ItemDef) Stats() ItemStats { } if d.Equipment.Other != nil { s.StrengthBonus = d.Equipment.Other.Strength - s.RangedStrength = d.Equipment.Other.Ranged + s.RangedStrength = d.Equipment.Other.RangedStrength s.ScienceDamage = d.Equipment.Other.Science s.TechnologyBonus = d.Equipment.Other.Technology } |
