implement science-not-invited filtering/scaling if that mod is installed

(Max count of research will be set to 10,000 * player_tech_cost) so as to not have an unreasonable amount.  Also,  other player installed mods, and even the infinite techs will have the max science pack level applied to them.)
This commit is contained in:
CaitSith2
2021-11-08 10:00:00 -08:00
parent fa56541b3a
commit 0b096528d4
4 changed files with 53 additions and 6 deletions

View File

@@ -29,7 +29,11 @@ base_info = {
"author": "Berserker",
"homepage": "https://archipelago.gg",
"description": "Integration client for the Archipelago Randomizer",
"factorio_version": "1.1"
"factorio_version": "1.1",
"dependencies": [
"base >= 1.1.0",
"? science-not-invited"
]
}
recipe_time_scales = {
@@ -95,7 +99,8 @@ def generate_mod(world, output_directory: str):
"free_sample_blacklist": {item : 1 for item in free_sample_blacklist},
"progressive_technology_table": {tech.name : tech.progressive for tech in
progressive_technology_table.values()},
"custom_recipes": world.custom_recipes}
"custom_recipes": world.custom_recipes,
"max_science_pack": multiworld.max_science_pack[player].value}
for factorio_option in Options.factorio_options:
template_data[factorio_option] = getattr(multiworld, factorio_option)[player].value