Skip to content

New and expanded functions - #633

Open
Qatavin wants to merge 7 commits into
modded-factorio:dev2.1from
Qatavin:new-functions
Open

Qatavin wants to merge 7 commits into
modded-factorio:dev2.1from
Qatavin:new-functions

Conversation

@Qatavin

@Qatavin Qatavin commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

As brought up in #526, this PR adds new functions that add, remove, or set any technology modifier, as well as adding functionality to add_recipe_unlock to control where the new addition is added - at a specific index, or before or after a specific existing subtable. add_tech_modifier also has this functionality.

These can be used to organize the way technologies are presented to be more clean and organized. I went through a few example files and applied the new functionality to them.

Screenshot 2026-09-09 210404

This also gives us the tools to easily maintain consistency even when Space Age randomly decides to change the value of some of these bonuses. For example, the turret attack damage bonus is only 0.2 in Space Age on Physical Attack Damage levels 6 and 7, instead of the vanilla values of 0.4 and 0.7.

In addition, I finally created the function for changing a recycling recipe to a self-recycling one. I also fixed an oversight in the existing recycling update functions so that the number of outputs in the base recipe will be taken into account when determining how long the item should take to recycle, instead of that only counting toward the quantity/probability of outputs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant