Skip to content
This repository has been archived by the owner on Mar 6, 2023. It is now read-only.

Cannot use productivity modules in assembly #1

Closed
DRY411S opened this issue Jul 10, 2016 · 1 comment
Closed

Cannot use productivity modules in assembly #1

DRY411S opened this issue Jul 10, 2016 · 1 comment
Assignees

Comments

@DRY411S
Copy link
Owner

DRY411S commented Jul 10, 2016

The game thinks that an assembled battery is not a intermediate-product and therefore productivity modules cannot be used.

https://forums.factorio.com/viewtopic.php?f=94&t=26607#p182048

@syskill
Copy link
Contributor

syskill commented Jul 23, 2016

Cf. data/base/prototypes/item/module.lua:

function productivitymodulelimitation()
return {"sulfuric-acid",
        "basic-oil-processing",
        "advanced-oil-processing",
        "heavy-oil-cracking",
        "light-oil-cracking",
        [snip]
        "rocket-fuel",
        "rocket-control-unit",
        "rocket-part"
      }
end

data:extend(
{
  {
    type = "module",
    name = "productivity-module",
    icon = "__base__/graphics/icons/productivity-module.png",
    flags = {"goes-to-main-inventory"},
    subgroup = "module",
    category = "productivity",
    tier = 1,
    order = "c[productivity]-a[productivity-module-1]",
    stack_size = 50,
    default_request_amount = 10,
    effect = { productivity = {bonus = 0.04}, consumption = {bonus = 0.4}, pollution = {bonus = 0.05}, speed = {bonus = -0.15}},
    limitation = productivitymodulelimitation(),
    limitation_message_key = "production-module-usable-only-on-intermediates"
  },

And the same limitation value specified for productivity modules 2 and 3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants