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

This subforum contains all the issues which we already resolved.
Post Reply
GuiltyBystander
Inserter
Inserter
Posts: 22
Joined: Sat Oct 01, 2016 12:53 am
Contact:

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

Post 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"
  },

Rseding91
Factorio Staff
Factorio Staff
Posts: 13204
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Fixed for 0.14.13.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”