From 97a1a908b9e6e6d3516628c139c9b64262b4fe08 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 18 Jun 2026 20:26:03 -0400 Subject: feat: crafting roughly implemented (leather, gems, gold, clay, spinning). --- internal/game/action_gather.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal/game/action_gather.go') diff --git a/internal/game/action_gather.go b/internal/game/action_gather.go index ffd30e1..8b45129 100644 --- a/internal/game/action_gather.go +++ b/internal/game/action_gather.go @@ -180,6 +180,11 @@ func (g *Game) advanceGather(sess *net.Session, p *player.Player) { _, shared := p.Action.Data["deplete_timer"] if step == 0 { + if p.FirstFreeSlot() == -1 { + sess.WriteLine(g.colorize(sess, "error", "Your inventory is too full!")) + g.CancelAction(p) + return + } if cfg.Bait != "" { if !p.HasItem(cfg.Bait) { baitName := cfg.Bait -- cgit v1.2.3