diff options
Diffstat (limited to 'internal/game/cmd_cook.go')
| -rw-r--r-- | internal/game/cmd_cook.go | 8 |
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() |
