Skip to content

Commit

Permalink
Doc: [Script] Make it clear random_deviation and CONFIG_RANDOM range …
Browse files Browse the repository at this point in the history
…upper bounds are inclusive
  • Loading branch information
SamuXarick authored and LordAro committed Mar 31, 2020
1 parent 8f9654c commit e7b9014
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/script/api/script_info_docs.hpp
Expand Up @@ -203,7 +203,7 @@ class ScriptInfo {
/** Miscellaneous flags for Script settings. */
enum ScriptConfigFlags {
CONFIG_NONE, ///< Normal setting.
CONFIG_RANDOM, ///< When randomizing the Script, pick any value between min_value and max_value.
CONFIG_RANDOM, ///< When randomizing the Script, pick any value between min_value and max_value (inclusive).
CONFIG_BOOLEAN, ///< This value is a boolean (either 0 (false) or 1 (true) ).
CONFIG_INGAME, ///< This setting can be changed while the Script is running.
CONFIG_DEVELOPER, ///< This setting will only be visible when the Script development tools are active.
Expand All @@ -230,8 +230,8 @@ class ScriptInfo {
* - custom_value The default value if the custom difficulty level
* is selected. Required.
* - random_deviation If this property has a nonzero value, then the
* actual value of the setting in game will be
* user_configured_value + random(-random_deviation, random_deviation).
* actual value of the setting in game will be randomized in the range
* [user_configured_value - random_deviation, user_configured_value + random_deviation] (inclusive).
* Not allowed if the CONFIG_RANDOM flag is set, otherwise optional.
* - step_size The increase/decrease of the value every time the user
* clicks one of the up/down arrow buttons. Optional, default is 1.
Expand Down

0 comments on commit e7b9014

Please sign in to comment.