diff options
Diffstat (limited to 'internal/game/action_use.go')
| -rw-r--r-- | internal/game/action_use.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/game/action_use.go b/internal/game/action_use.go index 497ceac..c47492f 100644 --- a/internal/game/action_use.go +++ b/internal/game/action_use.go @@ -17,7 +17,7 @@ func (g *Game) startUse(sess *net.Session, p *player.Player, obj *object.ObjectD return } - for itemID, qty := range cfg.Consume { + for itemID := range cfg.Consume { if !p.HasItem(itemID) { defName := itemID if def, err := g.ItemStore.Load(itemID); err == nil { @@ -26,7 +26,6 @@ func (g *Game) startUse(sess *net.Session, p *player.Player, obj *object.ObjectD sess.WriteLine(fmt.Sprintf("You need %s to use this.", defName)) return } - _ = qty } if cfg.Success == nil && p.FirstFreeSlot() == -1 { |
