aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_burn.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-01 02:21:42 -0400
committerhistoria <[not public]>2026-07-01 02:21:42 -0400
commit5f37dc9b6f6b79da04da70ae0c33ec8d02998587 (patch)
treef7c309e36267a4c456fcf5bca800e614507a80af /internal/game/act_burn.go
parentfee376102192dc6f24297a7b11324636ace3a07d (diff)
downloadthehouseoficarus-5f37dc9b6f6b79da04da70ae0c33ec8d02998587.tar.gz
feat: qol improvements to items crud in admin gui
Diffstat (limited to 'internal/game/act_burn.go')
-rw-r--r--internal/game/act_burn.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/act_burn.go b/internal/game/act_burn.go
index 7420dff..c24d3d7 100644
--- a/internal/game/act_burn.go
+++ b/internal/game/act_burn.go
@@ -309,8 +309,8 @@ func (g *Game) findFireTool(sess *net.Session, p *player.Player) (toolSpeed floa
if itemID, equipped := p.Equipment[item.SlotMainHand]; equipped {
def, err := g.ItemStore.Load(itemID)
- if err == nil && def.ToolType == "fire" {
- toolSpeed = def.ToolSpeed
+ if err == nil && def.ToolType() == "fire" {
+ toolSpeed = def.ToolSpeed()
toolItemID = itemID
}
}
@@ -321,10 +321,10 @@ func (g *Game) findFireTool(sess *net.Session, p *player.Player) (toolSpeed floa
continue
}
def, err := g.ItemStore.Load(slot.ItemID)
- if err != nil || def.ToolType != "fire" {
+ if err != nil || def.ToolType() != "fire" {
continue
}
- toolSpeed = def.ToolSpeed
+ toolSpeed = def.ToolSpeed()
toolItemID = slot.ItemID
break
}