How to remove the grenade?
How to remove the grenade?
Please tell me what I should write in the data.lua that would remove the grenade?
My native language is russian. Sorry if my messages are difficult to read.
Re: How to remove the grenade?
Code: Select all
local effects = data.raw["technology"]["military-2"].effects
for key,_ in pairs(effects) do
if (effects[key].recipe == "grenade") then
effects[key] = nil
end
end
Re: How to remove the grenade?
Thank you:)DaveMcW wrote:Code: Select all
local effects = data.raw["technology"]["military-2"].effects for key,_ in pairs(effects) do if (effects[key].recipe == "grenade") then effects[key] = nil end end
My native language is russian. Sorry if my messages are difficult to read.