From abd612c15799f604e671e83dc7c410ed2b44185f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 25 Jun 2026 15:40:48 -0400 Subject: slop refactor --- internal/game/core_equip.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/game/core_equip.go') 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 -- cgit v1.2.3