From fea2cc6839ec3ee17940a2dea69622dc6f4deabf Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Wed, 16 Sep 2026 21:35:55 -0400 Subject: fix: unify crafting ingredient resolution; fix superheat alternatives, quantity gates, and dropped combine byproducts --- internal/game/inventory_pickup_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/game/inventory_pickup_test.go') diff --git a/internal/game/inventory_pickup_test.go b/internal/game/inventory_pickup_test.go index 2fc89b7..0492339 100644 --- a/internal/game/inventory_pickup_test.go +++ b/internal/game/inventory_pickup_test.go @@ -17,7 +17,8 @@ func TestPickupMergesIntoFullInventory(t *testing.T) { h.seedAccount("alice") p := h.seedCharacter("alice", "alice") writeSeedFile(t, filepath.Join(h.dir, "items", "chips.yaml"), []byte("id: chips\nname: chips\nstackable: true\n")) - sess := &net.Session{Conn: newChanConn(), Player: p, State: net.StateGame} + sess := &net.Session{Conn: newChanConn(), Player: p} + sess.SetState(net.StateGame) h.g.RunOnOwner(func() { h.g.ItemStore.Reload(h.dir) for i := 0; i < 28; i++ { @@ -37,7 +38,8 @@ func TestPickupFullInventoryWithoutStackStillRefused(t *testing.T) { h.seedAccount("alice") p := h.seedCharacter("alice", "alice") writeSeedFile(t, filepath.Join(h.dir, "items", "chips.yaml"), []byte("id: chips\nname: chips\nstackable: true\n")) - sess := &net.Session{Conn: newChanConn(), Player: p, State: net.StateGame} + sess := &net.Session{Conn: newChanConn(), Player: p} + sess.SetState(net.StateGame) h.g.RunOnOwner(func() { h.g.ItemStore.Reload(h.dir) for i := 0; i < 28; i++ { -- cgit v1.2.3