diff options
| author | historia <[not public]> | 2026-06-18 20:26:03 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-18 20:26:03 -0400 |
| commit | 97a1a908b9e6e6d3516628c139c9b64262b4fe08 (patch) | |
| tree | d82953974edbfb4051dff1a48f1b264b9c264d28 /internal/game/action_gather.go | |
| parent | 17e7725f252c7f5d3be2e9c37d62751c631f196f (diff) | |
| download | thehouseoficarus-97a1a908b9e6e6d3516628c139c9b64262b4fe08.tar.gz | |
feat: crafting roughly implemented (leather, gems, gold, clay, spinning).
Diffstat (limited to 'internal/game/action_gather.go')
| -rw-r--r-- | internal/game/action_gather.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
