Bot-Policies auf recherchierte Level-Timelines: Runden-Ziele, Rolldowns, Slow-Roll, XP vor Shop

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
team3
2026-07-23 09:42:41 +02:00
parent 54a3e7f9be
commit feb59d8442

View File

@@ -52,8 +52,7 @@ def act(p: PlayerState, pool: Pool, artifact: dict, cfg: dict, rng: random.Rando
if p.augment_offer:
player.pick_augment(p, rng.randrange(len(p.augment_offer)))
_buy_from_shop(p, pool, artifact)
# Geplantes Leveln hat Vorrang vor Shop-Käufen ("on curve").
label = rnd["label"]
target = _target_level(params, label)
while p.level < target and p.gold >= cfg["xp"]["buy_cost"]:
@@ -62,6 +61,8 @@ def act(p: PlayerState, pool: Pool, artifact: dict, cfg: dict, rng: random.Rando
except InvalidAction:
break
_buy_from_shop(p, pool, artifact)
floor = None
slow_level = params.get("slow_roll_level")
if slow_level is not None and p.level >= slow_level: