aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_smelt.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 15:40:48 -0400
committerhistoria <[not public]>2026-06-25 15:40:48 -0400
commitabd612c15799f604e671e83dc7c410ed2b44185f (patch)
tree0597ca92350de73aac2a7cf26b2f2d6595dac0cc /internal/game/cmd_smelt.go
parent2725e2927a1595c7b100d942d1f14146252adeb7 (diff)
downloadthehouseoficarus-abd612c15799f604e671e83dc7c410ed2b44185f.tar.gz
slop refactor
Diffstat (limited to 'internal/game/cmd_smelt.go')
-rw-r--r--internal/game/cmd_smelt.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/cmd_smelt.go b/internal/game/cmd_smelt.go
index 8ad2391..59e52db 100644
--- a/internal/game/cmd_smelt.go
+++ b/internal/game/cmd_smelt.go
@@ -4,8 +4,8 @@ import (
"fmt"
"strings"
+ "thehouseoficarus/internal/item"
"thehouseoficarus/internal/net"
- "thehouseoficarus/internal/object"
"thehouseoficarus/internal/player"
)
@@ -44,7 +44,7 @@ func (g *Game) doSmelt(sess *net.Session, input string) {
itemID := matches[0].ID
- var recipes []*object.ItemDef
+ var recipes []*item.ItemDef
for _, item := range items {
c := item.FirstCraft()
if !stationMatch(stationDefID, c.Station) || !craftMatchesEntry(c, itemID) {
@@ -59,9 +59,9 @@ func (g *Game) doSmelt(sess *net.Session, input string) {
g.showRecipeChoice(sess, p, recipes, "You can't smelt that.", "What would you like to smelt?", "")
}
-func (g *Game) showSmeltMenu(sess *net.Session, p *player.Player, items []*object.ItemDef, stationDefID, stationName string) {
+func (g *Game) showSmeltMenu(sess *net.Session, p *player.Player, items []*item.ItemDef, stationDefID, stationName string) {
seen := make(map[string]bool)
- var recipes []*object.ItemDef
+ var recipes []*item.ItemDef
for _, item := range items {
c := item.FirstCraft()