Quest Mode Drafting

I've made some good progress on a proof of concept for quest drafting. I can now start a draft, pick cards, and they all get added to your quest collection (as well as the "deck" itself. I'm also fairly sure where I need to change things to get at least randomized drafts working in quest mode. I should have this ready for testing within the week for those of you who use snapshot builds.
My current thinking on the mode is to have something similar to the challenges menu where it lists 3 possible tournaments, where one is changed every 5 wins in regular duel mode.
The available tournaments are generated from the current quest's unlocked sets. Booster configurations within the sets are also randomized (you might get RAV/RAV/DIS or DIS/DIS/DIS).
The price of the tournament is calculated from the cost of the lands + the price of the three booster packs + an entry fee for prizes.
Once you join a tournament, you are immediately brought to the drafting screen and once you've picked your cards, you get to build your deck. The deck remains un-editable for the remainder of the tournament and once it's over, the deck will be added to your regular quest deck section.
The tournament itself is set up as a single elimination bracket with prizes for placing 3rd/4th, 2nd, and 1st. Prizes would be credits and booster packs with the occasional "promotional" card.
Before I get too far along in implementing this, I'd like to know if you guys have any suggestions.
-----
To-Do List:
My current thinking on the mode is to have something similar to the challenges menu where it lists 3 possible tournaments, where one is changed every 5 wins in regular duel mode.
The available tournaments are generated from the current quest's unlocked sets. Booster configurations within the sets are also randomized (you might get RAV/RAV/DIS or DIS/DIS/DIS).
The price of the tournament is calculated from the cost of the lands + the price of the three booster packs + an entry fee for prizes.
Once you join a tournament, you are immediately brought to the drafting screen and once you've picked your cards, you get to build your deck. The deck remains un-editable for the remainder of the tournament and once it's over, the deck will be added to your regular quest deck section.
The tournament itself is set up as a single elimination bracket with prizes for placing 3rd/4th, 2nd, and 1st. Prizes would be credits and booster packs with the occasional "promotional" card.
Before I get too far along in implementing this, I'd like to know if you guys have any suggestions.
-----
To-Do List:
- Code: Select all
[X] Add button to edit deck during tournament, remove restriction, make sure deck abides by restrictions before playing any games
[X] Add image for deck building view
[X] Add method for determining final placement of player
[X] Add tokens to unlock new drafts at will
[X] Add tournament rotations (rewrite calculations)
[X] Allow tournament to continue if interrupted before game is played
[X] Change "Leave Tournament" to "Collect Prizes and End Tournament"
[X] Closing game tab can concede for AI. Shouldn't allow this to happen. (CMatchUI at the bottom)
[X] Confirm action on leaving tournament (And tell player if they have matches left to play)
[X] Confirm action on submitting deck
[X] Confirm leaving game on match quit, notify player it will forfeit
[X] Disable start draft when clicked and succeeds, re-enable once done drafting and draft is removed
[X] Disable start match button when clicked, re-enable once matches empty
[X] Ensure that the draft is removed when quitting during the drafting process. No (easy) scumming!
[X] Ensure tournament gets removed on age 0
[X] Finish deck modification screen
[X] Fix ante
[X] Give the initial tournament view the correct behavior
[X] Hiding the overlay per normal ends up with broken UI for the next overlay displayed (Cannot replicate)
[X] Limit small sets per draft to 1 booster
[X] Prize Calculation and Awarding
[X] Restructure tournament view
[X] Rewrite "end tournament" code in CSubmenuQuestDraft
[X] Switching loaded quest changes which screen is displayed (is working as intended currently?)
[X] Track tournament placement count in quest achievements. (Wins/Losses by place)
[X] Update end of match button with better wording
[X] Add to changes.txt