Implement reserve vs. replacement card tracking in pack distribution #20
Labels
No Label
ai-changes-requested
ai-failed
ai-pr-opened
ai-reviewed
ai-reviewing
ai-working
ai-working
bug
enhancement
feature
in-queue
performance
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-discord#20
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
cogs/economy.py:1331andcogs/economy_new/team_setup.py:286both have# TODO: track reserve vs replacement. Current logic always usesmax_rar = 1regardless of team composition, skipping the intended balancing logic.PR #66 opened: #66
Fix: The
elsebranch (draw Reserve cards) was usingmax_rarity=1, which allows both Replacement (0) and Reserve (1) cards. Changed both the infielder and outfielder loops incogs/economy.pyandcogs/economy_new/team_setup.pyto usemin_rarity=rar, max_rarity=rar— matching the exact-tier pattern used ingauntlets.py. AddedRARITYimport toteam_setup.py. Removed the TODO comments.Fixed in PR #106. The reserve/replacement balancing loop in
cogs/economy.pyandcogs/economy_new/team_setup.pynow uses exact('rarity', 0)for Replacement-only targeting and('rarity', 1)for Reserve-only targeting, replacing themax_rarity=1that was incorrectly matching both tiers.