mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Allow explicit blacklisting (and whitelisting) of free samples from yaml
This commit is contained in:
@@ -113,6 +113,8 @@ def generate_mod(world, output_directory: str):
|
||||
"goal": multiworld.goal[player].value}
|
||||
|
||||
for factorio_option in Options.factorio_options:
|
||||
if factorio_option == "free_sample_blacklist":
|
||||
continue
|
||||
template_data[factorio_option] = getattr(multiworld, factorio_option)[player].value
|
||||
|
||||
if getattr(multiworld, "silo")[player].value == Options.Silo.option_randomize_recipe:
|
||||
@@ -121,6 +123,8 @@ 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)
|
||||
|
||||
control_code = control_template.render(**template_data)
|
||||
data_template_code = data_template.render(**template_data)
|
||||
data_final_fixes_code = data_final_template.render(**template_data)
|
||||
|
Reference in New Issue
Block a user