Expansion of functionality provided by #994 #1126
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduces various features that expand upon the functionality provided by #994, including:
level_up_handfunction to Poker Hands, which has the same functionality as the same function in Scoring Parameters, but takes priority over itSMODS.upgrade_poker_handsto use default upgrade behaviour if noargs.funcfunction is definedSMODS.upgrade_poker_handsnow passesargs.level_upas a parameter intoargs.funcSMODS.change_default_hand_upgrade_funcwhich changes the default behaviour for all hands/scoring paramsSMODS.get_default_hand_upgrade_funcwhich creates a function based on thelevel_up_handfunctions from a given hand and scoring parambase, the initial value of the parameter being upgraded,hand, the name of the hand being upgraded,parameter, the name of the scoring parameter being upgraded, andamount, the number the level is being increased bySMODS.hand_upgrade_funcis the default behaviour of all poker hands and scoring parameters without a definedlevel_up_handfunction; by default it is the following function:Additional Info: