Augments: Tier aus Icon-Suffix, eine Stufe pro Runde, Evergreen-Pool, Beschreibungen gerendert, Karten-UI
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -208,3 +208,16 @@ def test_natural_level_progression(art, cfg):
|
||||
assert checks["2-1"] == (3, 2)
|
||||
assert checks["2-5"] == (4, 2)
|
||||
assert checks["3-2"] == (5, 0)
|
||||
|
||||
|
||||
def test_augment_offer_single_tier(art, cfg):
|
||||
game = Game(art, cfg, seed=9)
|
||||
mixed = {f"AUG_T{t}_{i}": {"tier": t} for t in (1, 2, 3) for i in range(4)}
|
||||
game.artifact = {**art, "static": {**art["static"], "augments": mixed},
|
||||
"augment_pool": []}
|
||||
game.idx = next(i for i, r in enumerate(game.rounds) if r["augment"])
|
||||
game.player.augment_offer = []
|
||||
game._maybe_offer_augment()
|
||||
tiers = {mixed[a]["tier"] for a in game.player.augment_offer}
|
||||
assert len(game.player.augment_offer) == 3
|
||||
assert len(tiers) == 1 # alle Angebote aus derselben Stufe
|
||||
|
||||
Reference in New Issue
Block a user