diff options
Diffstat (limited to 'internal/game/cmd_smelt.go')
| -rw-r--r-- | internal/game/cmd_smelt.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_smelt.go b/internal/game/cmd_smelt.go index 5f7a7b3..97d9371 100644 --- a/internal/game/cmd_smelt.go +++ b/internal/game/cmd_smelt.go @@ -17,7 +17,7 @@ func (g *Game) doSmelt(sess *net.Session, input string) { p := sess.Player g.cancelAction(p) - stationDefID, stationName := g.findStation(p.RoomID, []string{"furnace"}) + stationDefID, _ := g.findStation(p.RoomID, []string{"furnace"}) if stationDefID == "" { sess.WriteLine("You need a furnace to smelt.") return @@ -26,7 +26,7 @@ func (g *Game) doSmelt(sess *net.Session, input string) { items := g.CraftIndex.BySubtype("smelting") if input == "" { - g.showSmeltMenu(sess, p, items, stationDefID, stationName) + g.showSmeltMenu(sess, p, items, stationDefID) return } @@ -59,7 +59,7 @@ 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 []*item.ItemDef, stationDefID, stationName string) { +func (g *Game) showSmeltMenu(sess *net.Session, p *player.Player, items []*item.ItemDef, stationDefID string) { seen := make(map[string]bool) var recipes []*item.ItemDef |
