aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_cook.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_cook.go
parent2725e2927a1595c7b100d942d1f14146252adeb7 (diff)
downloadthehouseoficarus-abd612c15799f604e671e83dc7c410ed2b44185f.tar.gz
slop refactor
Diffstat (limited to 'internal/game/cmd_cook.go')
-rw-r--r--internal/game/cmd_cook.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/cmd_cook.go b/internal/game/cmd_cook.go
index 6dfbcce..0e4f194 100644
--- a/internal/game/cmd_cook.go
+++ b/internal/game/cmd_cook.go
@@ -4,8 +4,8 @@ import (
"fmt"
"strings"
+ "thehouseoficarus/internal/item"
"thehouseoficarus/internal/net"
- "thehouseoficarus/internal/object"
"thehouseoficarus/internal/player"
)
@@ -47,7 +47,7 @@ func (g *Game) doCook(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) && craftHasAllItems(c, p.HasItem) {
@@ -59,9 +59,9 @@ func (g *Game) doCook(sess *net.Session, input string) {
g.showRecipeChoice(sess, p, recipes, "You can't cook that.", title, "")
}
-func (g *Game) showCookMenu(sess *net.Session, p *player.Player, items []*object.ItemDef, stationDefID, stationName string) {
+func (g *Game) showCookMenu(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()