Remove the last bit of code that required unsafe yaml loading.

This commit is contained in:
CaitSith2 2021-03-05 11:40:24 -08:00
parent d09a03aace
commit 43643870da
1 changed files with 0 additions and 2 deletions

View File

@ -373,8 +373,6 @@ def roll_triggers(weights: dict) -> dict:
def roll_settings(weights: dict, plando_options: typing.Set[str] = frozenset(("bosses"))):
if "pre_rolled" in weights:
pre_rolled = weights["pre_rolled"]
if isinstance(pre_rolled, argparse.Namespace):
return pre_rolled # Still accept old format pre-rolled, but only with unsafe loading.
if "plando_items" in pre_rolled:
pre_rolled["plando_items"] = [PlandoItem(item["item"],