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/core_production.go | |
| parent | fee376102192dc6f24297a7b11324636ace3a07d (diff) | |
| download | thehouseoficarus-5f37dc9b6f6b79da04da70ae0c33ec8d02998587.tar.gz | |
feat: qol improvements to items crud in admin gui
Diffstat (limited to 'internal/game/core_production.go')
| -rw-r--r-- | internal/game/core_production.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/game/core_production.go b/internal/game/core_production.go index 8a38f36..da9466f 100644 --- a/internal/game/core_production.go +++ b/internal/game/core_production.go @@ -11,8 +11,8 @@ func (g *Game) findTool(p *player.Player, toolTypes []string) (toolSpeed float64 if itemID, ok := p.Equipment[item.SlotMainHand]; ok { if def, err := g.ItemStore.Load(itemID); err == nil { for _, t := range toolTypes { - if def.ToolType == t { - return def.ToolSpeed, def.Name, true + if def.ToolType() == t { + return def.ToolSpeed(), def.Name, true } } } @@ -27,8 +27,8 @@ func (g *Game) findTool(p *player.Player, toolTypes []string) (toolSpeed float64 continue } for _, t := range toolTypes { - if def.ToolType == t { - return def.ToolSpeed, def.Name, true + if def.ToolType() == t { + return def.ToolSpeed(), def.Name, true } } } @@ -58,7 +58,7 @@ var productionTypes = map[string]productionTypeInfo{ EndMessage: "You've finished cooking.", FailMessage: "You accidentally burn the %i1.", }, - "smelting": { + "smelt": { ActionType: behavior.TypeSmelt, DisplayVerb: "smelting", StartMessage: "You place the %i1 into the furnace.", |
