mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-09-22 04:50:46 +02:00
Release v1.1.0: headless runner + tagging updates (Discard Matters, Freerunning, Craft, Spree, Explore/Map, Rad, Energy/Resource Engine, Spawn/Scion)
This commit is contained in:
parent
36abbaa1dd
commit
99005c19f8
23 changed files with 1330 additions and 420 deletions
|
@ -114,6 +114,7 @@ class LandFetchMixin:
|
|||
if len(chosen) < desired:
|
||||
leftovers = [n for n in candidates if n not in chosen]
|
||||
chosen.extend(leftovers[: desired - len(chosen)])
|
||||
|
||||
added: List[str] = []
|
||||
for nm in chosen:
|
||||
if self._current_land_count() >= land_target: # type: ignore[attr-defined]
|
||||
|
@ -127,6 +128,11 @@ class LandFetchMixin:
|
|||
added_by='lands_step4'
|
||||
) # type: ignore[attr-defined]
|
||||
added.append(nm)
|
||||
# Record actual number of fetch lands added for export/replay context
|
||||
try:
|
||||
setattr(self, 'fetch_count', len(added)) # type: ignore[attr-defined]
|
||||
except Exception:
|
||||
pass
|
||||
self.output_func("\nFetch Lands Added (Step 4):")
|
||||
if not added:
|
||||
self.output_func(" (None added)")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue