-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
House Rule: Happy Ending #49
Comments
I am currently working on this. So far I have managed to make a rule trigger an extra round once someone wins and also added the Happy Ending rule to both client and server. I am having two issues I would appreciate help with:
My changes so far are on my fork of this repo if anyone would like to have a look. |
Great to hear you are working on it. Forcing a card would involve changing the way the round is generated. We do this in You should be able to generate I took a quick look at your changes, and they make sense so far, but let me know if you run into any other issues. |
I have everything sorted now except for sending a specific card. I think I know the correct spot to do so and have added comments there but I don't know how to choose a specific call or choose one from a deck that isn't enabled in the case the selected decks don't include the base deck. |
There are a couple of ways to go about that, in theory you could go for something very complex where the user can select a call or something, but I'd recommend against that (or if you think it is valuable, make a new issue and do it more simply first). What I'd suggest is just hard-coding a call as a constant, which in the case of the house rule as described is fine. The difficult part of this is the source, I would suggest making a new source like Then it's just a case of making the card with that source, i.e:
Obviously, this falls over when it comes to localization, but that is harder to solve as we don't have translations of the base deck for all languages. I would suggest that is a problem for another issue. |
For now, I think I will hard-code the card in. I have managed to get everything working so expect a pull request soon! |
In as of #179 being merged, thanks to @CookieCoder15! 🎉 |
Add a new house rule that can be enabled from the house rules during game setup:
This task is marked as a good first issue. If you would like to contribute but are unsure where to start, please take a look at the wiki for how to set up a development environment, and feel free to ask if you are still not sure.
The text was updated successfully, but these errors were encountered: