diff options
| author | historia <[not public]> | 2026-09-16 17:05:17 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 17:05:17 -0400 |
| commit | 1dad15698845d370e998f7cc5feb8aece3fab58f (patch) | |
| tree | 8d58058782de9f422573e1f8efd5d130ce7d1ce9 /internal/game/cmd_smelt.go | |
| parent | a6cf03a6ae98e4fb675da25046d148e92bcf7206 (diff) | |
| download | thehouseoficarus-1dad15698845d370e998f7cc5feb8aece3fab58f.tar.gz | |
refactor: remove dead code, consolidate save/error handling, add lint gate
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 |
