Use OptionSet for blacklist

This commit is contained in:
CaitSith2
2021-12-02 15:27:00 -08:00
parent a15689e380
commit efb4e5a7b3
2 changed files with 3 additions and 11 deletions

View File

@@ -123,7 +123,7 @@ def generate_mod(world, output_directory: str):
if getattr(multiworld, "satellite")[player].value == Options.Satellite.option_randomize_recipe:
template_data["free_sample_blacklist"]["satellite"] = 1
template_data["free_sample_blacklist"].update(multiworld.free_sample_blacklist[player].value)
template_data["free_sample_blacklist"].update({item: 1 for item in multiworld.free_sample_blacklist[player].value})
control_code = control_template.render(**template_data)
data_template_code = data_template.render(**template_data)