diff options
| author | historia <[not public]> | 2026-07-01 02:21:42 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-01 02:21:42 -0400 |
| commit | 5f37dc9b6f6b79da04da70ae0c33ec8d02998587 (patch) | |
| tree | f7c309e36267a4c456fcf5bca800e614507a80af /internal/game/act_burn.go | |
| parent | fee376102192dc6f24297a7b11324636ace3a07d (diff) | |
| download | thehouseoficarus-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.go | 8 |
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 } |
