diff options
| author | historia <[not public]> | 2026-09-16 21:35:55 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 21:35:55 -0400 |
| commit | fea2cc6839ec3ee17940a2dea69622dc6f4deabf (patch) | |
| tree | 9d893525ca20d2cc920e9e866f84f71b605d8ae9 /internal/game/harness_test.go | |
| parent | 35ddd0ad2215760bb1d3dc7724480f179ea33fa6 (diff) | |
| download | thehouseoficarus-fea2cc6839ec3ee17940a2dea69622dc6f4deabf.tar.gz | |
fix: unify crafting ingredient resolution; fix superheat alternatives, quantity gates, and dropped combine byproducts
Diffstat (limited to 'internal/game/harness_test.go')
| -rw-r--r-- | internal/game/harness_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/game/harness_test.go b/internal/game/harness_test.go index c80f437..1d3df10 100644 --- a/internal/game/harness_test.go +++ b/internal/game/harness_test.go @@ -196,7 +196,8 @@ func (h *harness) connect(name string) (*net.Session, *chanConn) { t.Fatalf("connect %s: %v", name, err) } conn := newChanConn() - sess := &net.Session{Conn: conn, Account: acc, Player: p, State: net.StateGame} + sess := &net.Session{Conn: conn, Account: acc, Player: p} + sess.SetState(net.StateGame) sess.StartWriter() h.hub.Add(sess) h.hub.EnterRoom(sess, p.RoomID) @@ -216,7 +217,8 @@ func (h *harness) connectMenu(accountName string) *net.Session { h.t.Fatalf("connectMenu %s: %v", accountName, err) } conn := newChanConn() - sess := &net.Session{Conn: conn, Account: acc, State: net.StateMenu} + sess := &net.Session{Conn: conn, Account: acc} + sess.SetState(net.StateMenu) sess.StartWriter() h.hub.Add(sess) h.mu.Lock() |
