mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-16 23:50:12 +01:00
chore:fixing cli build due to missing variable in build phase 5 and the headless_runner not doing setup/tagging automatically
This commit is contained in:
parent
9eafe49393
commit
668f1a7185
2 changed files with 41 additions and 3 deletions
|
|
@ -45,12 +45,13 @@ class ColorBalanceMixin:
|
|||
Uses the color source matrix to aggregate counts for each color.
|
||||
"""
|
||||
matrix = self._compute_color_source_matrix()
|
||||
counts = {c:0 for c in ['W','U','B','R','G']}
|
||||
# Track only WUBRG here; ignore colorless 'C' and any other markers for this computation.
|
||||
counts = {c: 0 for c in ['W', 'U', 'B', 'R', 'G']}
|
||||
for name, colors in matrix.items():
|
||||
entry = self.card_library.get(name, {})
|
||||
copies = entry.get('Count',1)
|
||||
copies = entry.get('Count', 1)
|
||||
for c, v in colors.items():
|
||||
if v:
|
||||
if v and c in counts:
|
||||
counts[c] += copies
|
||||
return counts
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue