From 1dad15698845d370e998f7cc5feb8aece3fab58f Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 17:05:17 -0400 Subject: refactor: remove dead code, consolidate save/error handling, add lint gate --- internal/game/cmd_smelt.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/game/cmd_smelt.go') 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 -- cgit v1.2.3