Kein Shop bei 1-2 — erste Ware ab 1-3
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -38,7 +38,7 @@ def test_same_seed_same_outcome(art, cfg):
|
|||||||
def test_buy_and_merge(art, cfg):
|
def test_buy_and_merge(art, cfg):
|
||||||
game = Game(art, cfg, seed=1)
|
game = Game(art, cfg, seed=1)
|
||||||
game.gold = 100
|
game.gold = 100
|
||||||
api = next(a for a in game.shop if a)
|
api = "U1_0"
|
||||||
unit = {"api_name": api, "stars": 1, "items": []}
|
unit = {"api_name": api, "stars": 1, "items": []}
|
||||||
game.bench = [dict(unit), dict(unit)]
|
game.bench = [dict(unit), dict(unit)]
|
||||||
game.pool.take(api, 2)
|
game.pool.take(api, 2)
|
||||||
|
|||||||
@@ -48,8 +48,9 @@ class Game:
|
|||||||
for p in self.players:
|
for p in self.players:
|
||||||
self._carousel(p)
|
self._carousel(p)
|
||||||
self.idx += 1
|
self.idx += 1
|
||||||
|
# Bei 1-2 gibt es noch keinen Shop — niemand hat Gold.
|
||||||
for p in self.players:
|
for p in self.players:
|
||||||
player.refresh_shop(p, self.pool, cfg, self.rng)
|
p.shop = [None] * cfg["shop"]["slots"]
|
||||||
self._maybe_offer_augment()
|
self._maybe_offer_augment()
|
||||||
|
|
||||||
# ---- helpers ----
|
# ---- helpers ----
|
||||||
|
|||||||
Reference in New Issue
Block a user