Skip to content

Consistent Deck sorting - #279

Open
gallantron wants to merge 2 commits into
edo9300:masterfrom
gallantron:feature/consistent-sorting
Open

gallantron wants to merge 2 commits into
edo9300:masterfrom
gallantron:feature/consistent-sorting

Conversation

@gallantron

Copy link
Copy Markdown
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 thread gframe/client_card.cpp
Comment on lines +141 to +143
// player cards go before opponent cards
if (e1->controler != e2->controler)
return e1->controler < e2->controler;

Copy link
Copy Markdown
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
Copy Markdown
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
@edo9300
edo9300 force-pushed the master branch 4 times, most recently from 205b5b8 to fd5b018 Compare August 8, 2026 23:20
@edo9300
edo9300 force-pushed the master branch 2 times, most recently from f235225 to 8d6d01c Compare August 19, 2026 17:36
@edo9300
edo9300 force-pushed the master branch 7 times, most recently from 5f94225 to 30935e8 Compare August 31, 2026 10:15
@edo9300
edo9300 force-pushed the master branch 2 times, most recently from 7c1bf5e to 0ed232a Compare September 14, 2026 10:46
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