Help with damage value
Posted: Sun Jan 05, 2020 11:02 pm
Hello, I have hard time figuring out how to change the damage number for the Ammo mod that I made.
I would appreciate any help, tanks.
here is code so you have some Idea what I'm talking about...
-- newAmmo
local betterAmmo = table.deepcopy(data.raw.ammo["firearm-magazine"])
betterAmmo.name = "BetterAmmo"
betterAmmo.icons =
{
{
icon = table.deepcopy(data.raw.ammo["firearm-magazine"].icon),
tint = {r=0,g=1,b=0,a=0.3}
},
}
betterAmmo.damage = 30
local recipe = table.deepcopy(data.raw.recipe["firearm-magazine"])
recipe.enabled = true
recipe.name = "BetterAmmo"
recipe.ingredients = {{"copper-plate",2},{"steel-plate",1}}
recipe.result = "BetterAmmo"
data:extend{betterAmmo,recipe}
I would appreciate any help, tanks.
here is code so you have some Idea what I'm talking about...
-- newAmmo
local betterAmmo = table.deepcopy(data.raw.ammo["firearm-magazine"])
betterAmmo.name = "BetterAmmo"
betterAmmo.icons =
{
{
icon = table.deepcopy(data.raw.ammo["firearm-magazine"].icon),
tint = {r=0,g=1,b=0,a=0.3}
},
}
betterAmmo.damage = 30
local recipe = table.deepcopy(data.raw.recipe["firearm-magazine"])
recipe.enabled = true
recipe.name = "BetterAmmo"
recipe.ingredients = {{"copper-plate",2},{"steel-plate",1}}
recipe.result = "BetterAmmo"
data:extend{betterAmmo,recipe}