Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent Deck sorting #279

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gallantron
Copy link
Contributor

This changes sorting of face-down cards in the player's Main Deck/Extra Deck to always be consistent, instead of dependent on the respective Deck's (randomized) order.

It also changes attached material to always be grouped immediately after the card it is attached to.

Comment on lines +141 to +143
// player cards go before opponent cards
if (e1->controler != e2->controler)
return e1->controler < e2->controler;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upon review, i am unsure whether controler = 0 is always the player, and controler = 1 is always the opponent...

if not, is there a way to figure out who's who from this context? (presumably via mainGame though that feels hacky)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this, and it seems that controler = 0 is always the player... would still like a sanity check that I'm correct there, though

@edo9300 edo9300 force-pushed the master branch 2 times, most recently from 96c64ac to 1ac735e Compare December 3, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant