Page 1 of 1

[0.14.12] grenade-damage-5 duplicate declaration in .lua

Posted: Sat Oct 01, 2016 2:08 am
by GuiltyBystander
Not a big deal but an easy fix. "grenade-damage-5" is declared twice in Factorio\data\base\prototypes\technology\technology.lua

The only real difference between the is that it requires 600 or 1000 sets of science packs. It looks like the game takes the data from the 2nd one. Can't tell which one is intended, but 1000 seems like a big jump from 300 for grenade-damage-4.

Code: Select all

  {
    type = "technology",
    name = "grenade-damage-5",
    icon = "__base__/graphics/technology/grenade-damage.png",
    effects =
    {
      {
        type = "ammo-damage",
        ammo_category = "grenade",
        modifier = "0.2"
      }
    },
    prerequisites = {"grenade-damage-4"},
    unit =
    {
      count = 600,
      ingredients =
      {
        {"science-pack-1", 1},
        {"science-pack-2", 1},
        {"science-pack-3", 1},
        {"alien-science-pack", 1},
      },
      time = 45
    },
    upgrade = true,
    order = "e-n-a"
  },
  {
    type = "technology",
    name = "grenade-damage-5",
    icon = "__base__/graphics/technology/grenade-damage.png",
    effects =
    {
      {
        type = "ammo-damage",
        ammo_category = "grenade",
        modifier = "0.2"
      }
    },
    prerequisites = {"grenade-damage-4"},
    unit =
    {
      count = 1000,
      ingredients =
      {
        {"science-pack-1", 1},
        {"science-pack-2", 1},
        {"science-pack-3", 1},
        {"alien-science-pack", 1}
      },
      time = 45
    },
    upgrade = true,
    order = "e-n-a"
  },

Re: [0.14.12] grenade-damage-5 duplicate declaration in .lua

Posted: Mon Oct 03, 2016 2:38 am
by Rseding91
Fixed for 0.14.13.