Compare commits

...

4 Commits

Author SHA1 Message Date
NewSoupVi
3bf3ce2da4 Merge branch 'main' into NewSoupVi-patch-2 2024-06-20 07:22:52 +02:00
NewSoupVi
8fae75f577 Update Generate.py 2024-05-24 00:05:01 +02:00
NewSoupVi
8b8a95089c Update Generate.py 2024-05-24 00:04:46 +02:00
NewSoupVi
1e99625f3b Add an option docstring to roll_settings to hopefully prevent the weights fiasco from being repeated 2024-05-24 00:03:25 +02:00

View File

@@ -446,6 +446,14 @@ def handle_option(ret: argparse.Namespace, game_weights: dict, option_key: str,
def roll_settings(weights: dict, plando_options: PlandoOptions = PlandoOptions.bosses):
"""
Roll options from specified weights, usually originating from a .yaml options file.
Important note:
The same weights dict is shared between all slots using the same yaml (e.g. generic weights file for filler slots).
This means it should never be modified without making a deepcopy first.
"""
from worlds import AutoWorldRegister
if "linked_options" in weights: