M10: Vue frontend — traits, shop, bench, opponents, strength meter

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
team3
2026-07-23 00:40:26 +02:00
parent 7f78c965cc
commit 61127fa7e0
15 changed files with 1877 additions and 1 deletions

View File

@@ -182,6 +182,13 @@ class Game:
raise InvalidAction("game over")
if self.augment_offer:
self.pick_augment(self.rng.randrange(len(self.augment_offer)))
# Wie in TFT: freie Board-Plätze werden beim Kampfstart von der Bank aufgefüllt.
self.bench.sort(
key=lambda u: -self.artifact["static"]["units"][u["api_name"]]["cost"]
* 3 ** (u["stars"] - 1)
)
while len(self.board) < self.level and self.bench:
self.board.append(self.bench.pop(0))
rnd = self.round
won = self._resolve(rnd)