mirror of
https://github.com/ArchipelagoMW/Archipelago.git
synced 2026-05-27 14:49:54 -07:00
Options: support "random" and variations for OptionSet with defined valid_keys (#4418)
* seemingly works? needs testing * attempt docs update * move to verify resolution (keep?) * account for no valid keys and "random" being passed * Update advanced_settings_en.md * Update Options.py Co-authored-by: qwint <qwint.42@gmail.com> * Update Options.py Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com> * unify random handling between range and set * Update Options.py * Update Options.py * Update Options.py Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com> * super is weird * fix item/location * remove groups from options * unittest * pep8 * Update Options.py Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com> * Update Options.py --------- Co-authored-by: qwint <qwint.42@gmail.com> Co-authored-by: Doug Hoskisson <beauxq@users.noreply.github.com> Co-authored-by: Exempt-Medic <60412657+Exempt-Medic@users.noreply.github.com>
This commit is contained in:
@@ -156,6 +156,9 @@ Options taking a choice of a number can also use a variety of `random` options t
|
||||
* `random-range-low-#-#`, `random-range-middle-#-#`, and `random-range-high-#-#` will choose a number at random from the
|
||||
specified numbers, but with the specified weights
|
||||
|
||||
Options defining a unique set of options can also make use of the prior `random` options to select a subset of possible
|
||||
options. The resulting number is used as the number of random items the set should contain.
|
||||
|
||||
### Example
|
||||
|
||||
```yaml
|
||||
|
||||
Reference in New Issue
Block a user