How to remove the grenade?
Posted: Fri Jul 01, 2016 2:09 pm
Please tell me what I should write in the data.lua that would 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
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