Page 1 of 1

[16.51] Productivity Module, Pollution dependency

Posted: Wed Aug 01, 2018 3:34 pm
by TheSAguy
I'm not sure if this is a bug or game requirement I missed.
But it seems like an entity can't use a Productivity Module without also being able to use Pollution Module.

I wanted to give my entity the ability to use a productivity module, and left out the Pollution part and it could not accept a productivity module.

Not working code for Productivity Module:

Code: Select all

	module_specification =
    {
      module_slots = 3
    },
	allowed_effects = {"consumption", "speed", "productivity"},
Working:

Code: Select all

    module_specification =
    {
      module_slots = 3
    },
    allowed_effects = {"consumption", "speed", "productivity", "pollution"}
So the above code allows Productivity modules in the entity by adding Pollution, even though I did not want pollution.

Thanks.

Re: [16.51] Productivity Module, Pollution dependency

Posted: Wed Aug 01, 2018 4:10 pm
by Allaizn
Isn't this working as intended, since the usual productivity modules also increase pollution?
By disallowing pollution to be modified, you'd therefore also prevent the usual productivity modules.

Re: [16.51] Productivity Module, Pollution dependency

Posted: Wed Aug 01, 2018 5:07 pm
by Rseding91
Allaizn wrote:Isn't this working as intended, since the usual productivity modules also increase pollution?
By disallowing pollution to be modified, you'd therefore also prevent the usual productivity modules.
Correct.

If you want to use productivity but not pollution then you need to make a new module that doesn't include pollution or remove pollution from the normal productivity module.

Re: [16.51] Productivity Module, Pollution dependency

Posted: Wed Aug 01, 2018 5:21 pm
by TheSAguy
Got it, thought it might be something like that.