diff options
| author | historia <[not public]> | 2026-07-05 00:41:11 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-05 00:41:11 -0400 |
| commit | 81f3e3bae7d82f0e0ad72d89ea5a5fdae8804712 (patch) | |
| tree | 55793d006b42778951d9029aa9aeafac7cdfbc6d /internal/item | |
| parent | 4385244d39b37d003dbb7a66a2ff3b05079b7047 (diff) | |
| download | thehouseoficarus-81f3e3bae7d82f0e0ad72d89ea5a5fdae8804712.tar.gz | |
fix: remove redundant 'quality' on items, fix ranged str on ammo, item admin ui updates
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 } |
