-
Notifications
You must be signed in to change notification settings - Fork 15
Conversation
Ultimately (version 2.0 or something) I'd like to abstract deck loading quite a bit more so we could register "deck providers" without having to touch the actual game class. This PR is fine for now, moving the changes later shouldn't be too much trouble. Just a FYI for what I have planned :) What bothers me is the additional JSON route, I'd prefer to have the custom set stuff inside the general lobby updates. I can make those changes myself if that's cool with you. Is there any specific reason why there need to be at least 3 white and 5 black cards? CAE doesn't really care about the number of cards in a deck; empty decks are perfectly fine (even if they make little sense). |
Great work on CAH Creator by they way, highly appreciate the work! |
You just answered your own question haha, an empty deck would just make no sense. I can remove the check if you'd like. |
Well, it uh, almost is. You could refresh the page, make an empty deck on CAH Creator and then use that but no, there really isn't a way to remove
That'd be pretty sweet!
Go for it, but that's the entire reason why I didn't put it in |
Add custom sets, fix a few bugs
Gonna be making the mentioned changes now-ish |
Sounds good, approximately when will this be merged into master and deployed to prod? |
I have no idea! If everything goes well in a couple hours, we'll see |
Added support for multiple custom decks, added a list of currently selected custom decks (shown to all players in the lobby) and added ability to remove custom decks. |
Yes. I'm late, it's already live! |
This pull request adds integration with cahcreator.com, a lightweight, collaborative Cards Against Humanity deck creator. Game hosts will be able to add custom decks to their games via the deck ID on CAH Creator; they will not be permanently stored on the server. However, decks must have at least 3 black cards and 5 white cards. They do count as expansions, so users will still need to pick a main deck.
I don't really know Knockout.js that well, so if you find anything that could be improved with it, please tell me! I added some TODOs where I believe that the code could be improved or a feature could be added.
I'm probably going to be adding raw JSON import if you don't merge this right away -- so if you want to use that instead of some shady third-party service, then hold off from merging it until then. 😉 (CAH Creator is actually open-source...)
Oh, and don't mind the whitespace removal on the migrations, it should't affect them. Atom likes saving bytes.
Things that need to be fixed or added
(when I fixed the merge conflict, it apparently still had the commits from master. they don't seem to be a problem but I can close and re-open this again with them removed if you want, I was just too lazy and it's 11:30 PM here)