mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2026-04-06 05:07:16 +02:00
feat: smart land bases — auto land count, mana profile, slot earmarking, and backfill (#63)
This commit is contained in:
parent
ac6c9f4daa
commit
0ab2183277
21 changed files with 1408 additions and 51 deletions
|
|
@ -19,6 +19,10 @@ class LandOptimizationMixin:
|
|||
bracket_level = getattr(self, 'bracket_level', None)
|
||||
threshold_map = getattr(bc, 'TAPPED_LAND_MAX_THRESHOLDS', {5:6,4:8,3:10,2:12,1:14})
|
||||
threshold = threshold_map.get(bracket_level, 10)
|
||||
# Smart Lands M2: tighten tapped threshold for fast profiles, loosen for slow.
|
||||
# _land_profile defaults to 'mid' (offset 0) when ENABLE_SMART_LANDS is off.
|
||||
profile_offsets = getattr(bc, 'PROFILE_TAPPED_THRESHOLD_OFFSETS', {'fast': -4, 'mid': 0, 'slow': 4})
|
||||
threshold += profile_offsets.get(getattr(self, '_land_profile', 'mid'), 0)
|
||||
|
||||
name_to_row = {}
|
||||
for _, row in df.iterrows():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue