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:
@@ -52,8 +52,7 @@ def act(p: PlayerState, pool: Pool, artifact: dict, cfg: dict, rng: random.Rando
|
|||||||
if p.augment_offer:
|
if p.augment_offer:
|
||||||
player.pick_augment(p, rng.randrange(len(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"]
|
label = rnd["label"]
|
||||||
target = _target_level(params, label)
|
target = _target_level(params, label)
|
||||||
while p.level < target and p.gold >= cfg["xp"]["buy_cost"]:
|
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:
|
except InvalidAction:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
_buy_from_shop(p, pool, artifact)
|
||||||
|
|
||||||
floor = None
|
floor = None
|
||||||
slow_level = params.get("slow_roll_level")
|
slow_level = params.get("slow_roll_level")
|
||||||
if slow_level is not None and p.level >= slow_level:
|
if slow_level is not None and p.level >= slow_level:
|
||||||
|
|||||||
Reference in New Issue
Block a user