Factorio: set useless technologies to be researched from the start (#1205)
This commit is contained in:
parent
8f325a4f2b
commit
61232ca756
|
@ -13,7 +13,7 @@ import Utils
|
|||
import worlds.Files
|
||||
from . import Options
|
||||
from .Technologies import tech_table, recipes, free_sample_exclusions, progressive_technology_table, \
|
||||
base_tech_table, tech_to_progressive_lookup, fluids
|
||||
base_tech_table, tech_to_progressive_lookup, fluids, useless_technologies
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from . import Factorio
|
||||
|
@ -135,6 +135,7 @@ def generate_mod(world: "Factorio", output_directory: str):
|
|||
"liquids": fluids,
|
||||
"goal": multiworld.goal[player].value,
|
||||
"energy_link": multiworld.energy_link[player].value,
|
||||
"useless_technologies": useless_technologies,
|
||||
}
|
||||
|
||||
for factorio_option in Options.factorio_options:
|
||||
|
|
|
@ -112,6 +112,9 @@ function on_force_created(event)
|
|||
{%- if silo == 2 %}
|
||||
check_spawn_silo(force)
|
||||
{%- endif %}
|
||||
{%- for tech_name in useless_technologies %}
|
||||
force.technologies.{{ tech_name }}.researched = true
|
||||
{%- endfor %}
|
||||
end
|
||||
script.on_event(defines.events.on_force_created, on_force_created)
|
||||
|
||||
|
|
Loading…
Reference in New Issue