Last updated
Last updated
Difficulties are very useful tool to dynamically scale your challenges by increasing amount of objectives, conditions and rewards.
You can find them in config.yml
-> Challenges
-> Difficulties
Feel free to create your own difficulties and modify the default ones!
Difficulties has a configurable level range for challenges. When a challenge is generated, it gets a random level within the boundaries of challenge difficulty.
Levels are useful for scaling (see formula below).
Difficulties uses modifiers to scale challenge's objectives, conditions and rewards.
Every modifier has the following settings:
Base
- Initial modifier value.
Per_Level
- Value per challenge level.
Final modifier value calculated by a formula: <base> + <per_level> * <challenge level>
With a 30 lvl. challenge we have the following final modifier values:
objective_amount = 30 * 0.05 = 1.5
objective_progress = 2 + (30 * 0.01) = 2.3
Now, Amount
value will be between (1 + 1.5; 2 + 1.5)
= ~2 and ~3, and Progress
value between (18 * 2.3; 25 * 2.3)
= ~41 and ~57.
In config, you can specify difficulty modifier and the action used between final modifier and generator values.
Consider the following Difficulty and configs: