-
Notifications
You must be signed in to change notification settings - Fork 11
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
Think about how rules or rulesets can be limited to specific campaigns or other critera. #314
Comments
I don't think that 1. is necessarily too complex. Thinking about how to represent this from a JSON viewpoint, e.g.
This would offer good flexibility with allowing rulesets to be tailored to different game types, without us having to make the rules themselves too clever. If a ruleset wants to specify torches as a CardAddition it becomes possible (if somewhat verbose) by specifying multiple I know we can have optional/default parameters in c#... not sure about an optional parameter with newtonsoft json though. |
Great JSON example - very clean. Adding some details:
|
I was in the mood for playing around with code, so I attempted to sketch out the above approach in code. I've raised a draft PR #348 to make it easy to see the changes involved. I do not think that the approach I've taken in the PR is the correct one to follow for the following reasons:
I'm now thinking that it may be better to have HouseRules Core examine the rulesets and decide whether to apply a rule or not, rather than have each rule try to decide for itself whether to apply the config it was supplied with or not. |
Following @TheGrayAlien's idea from https://discord.com/channels/841011788195823626/841011980667060244/968149051323338802:
The question is, how can HR restrict a card (via
CardAdditionOverridden
rule) to a particular module/campaign (e.g., RatKing/Forest/Queen)?CardAdditionOverridden
so that the applicable campaign can be set.A similar request could be made for many of the other rules (e.g., monster spawning, points of interest per floor, etc.). So the question could then be: should HR have a standard way of building in campaign-filters into each rule?
However, there can be multiple filter criteria (e.g., number of active players, campaign type). Which transforms the question into: how can (and what kind of) filter criteria be set for rules?
While point
1.
above may seem like the most robust solution, it may be overly complicated to implement and potentially challenging to elegantly expose those options via JSON for users to customize.Both points
2.
and3.
effectively do the same thing: requires rulesets to have campaign-specific variants. But they also don't elegantly solve the problem at hand.Not sure what the best course of action may be at this point. May need more data.
The text was updated successfully, but these errors were encountered: