Skip to content

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

@gallantron gallantron force-pushed the feature/consistent-sorting branch from 81c1d8e to 3cc0627 Compare March 30, 2025 20:49
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