Adding resistances to modules?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
NIronwolf
Inserter
Inserter
Posts: 35
Joined: Sat Jul 07, 2018 6:44 am
Contact:

Adding resistances to modules?

Post by NIronwolf »

Apologies for being new to modding. I'd like to make a mod that has local pollution do damage to buildings. This has been done before, so I know I can get this basic concept working. However, I'd like to add a line of modules that will reduce this damage. I can't seem to find the right attributes to be able to mark a module as granting anything other than consumption, speed, productivity and pollution modifiers. I'm lost on finding the right place to add it as a resistance type, would this be in the ballpark?

User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 213
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: Adding resistances to modules?

Post by Therenas »

You can't add module effects other than the 4 standard ones. You'll have to hack around this somehow.

User avatar
NIronwolf
Inserter
Inserter
Posts: 35
Joined: Sat Jul 07, 2018 6:44 am
Contact:

Re: Adding resistances to modules?

Post by NIronwolf »

Thanks for the confirmation. I've started looking into ways to do it. I really wish there was a trigger for changed modules.

Post Reply

Return to “Modding help”