aboutsummaryrefslogtreecommitdiff
path: root/internal/game/core_equip.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/game/core_equip.go
parent8eec7b75ff9c8c368b252373db45fb891732d2ca (diff)
downloadthehouseoficarus-c14c2e403c75a913e1a6d962fb6fe64f013adae5.tar.gz
fix: combat formulas and mob attack types (mobs switch attack styles if safespotting)
Diffstat (limited to 'internal/game/core_equip.go')
-rw-r--r--internal/game/core_equip.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/core_equip.go b/internal/game/core_equip.go
index a297466..7a1c1bc 100644
--- a/internal/game/core_equip.go
+++ b/internal/game/core_equip.go
@@ -33,7 +33,7 @@ func (g *Game) playerEquipBonuses(p *player.Player) item.ItemStats {
func (g *Game) playerWeaponSpeed(p *player.Player) float64 {
if itemID, ok := p.Equipment[item.SlotMainHand]; ok {
def, err := g.ItemStore.Load(itemID)
- if err == nil && def.Speed()> 0 {
+ if err == nil && def.Speed() > 0 {
return def.Speed()
}
}