diff options
| author | historia <[not public]> | 2026-06-25 15:40:48 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-25 15:40:48 -0400 |
| commit | abd612c15799f604e671e83dc7c410ed2b44185f (patch) | |
| tree | 0597ca92350de73aac2a7cf26b2f2d6595dac0cc /internal/game/core_equip.go | |
| parent | 2725e2927a1595c7b100d942d1f14146252adeb7 (diff) | |
| download | thehouseoficarus-abd612c15799f604e671e83dc7c410ed2b44185f.tar.gz | |
slop refactor
Diffstat (limited to 'internal/game/core_equip.go')
| -rw-r--r-- | internal/game/core_equip.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/core_equip.go b/internal/game/core_equip.go index 02b8348..cc8016d 100644 --- a/internal/game/core_equip.go +++ b/internal/game/core_equip.go @@ -1,12 +1,12 @@ package game import ( - "thehouseoficarus/internal/object" + "thehouseoficarus/internal/item" "thehouseoficarus/internal/player" ) -func (g *Game) playerEquipBonuses(p *player.Player) object.ItemStats { - var totals object.ItemStats +func (g *Game) playerEquipBonuses(p *player.Player) item.ItemStats { + var totals item.ItemStats for _, itemID := range p.Equipment { def, err := g.ItemStore.Load(itemID) if err != nil { @@ -31,7 +31,7 @@ func (g *Game) playerEquipBonuses(p *player.Player) object.ItemStats { } func (g *Game) playerWeaponSpeed(p *player.Player) float64 { - if itemID, ok := p.Equipment[object.SlotMainHand]; ok { + if itemID, ok := p.Equipment[item.SlotMainHand]; ok { def, err := g.ItemStore.Load(itemID) if err == nil && def.Speed > 0 { return def.Speed |
