1
0
mirror of https://github.com/veden/Rampant.git synced 2025-01-22 03:08:51 +02:00
Rampant/prototypes/buildings/UpdatesVanilla.lua
2017-08-08 01:19:51 -07:00

22 lines
457 B
Lua
Executable File

local vanillaUpdates = {}
function vanillaUpdates.addWallAcidResistance()
local walls = data.raw["wall"]
for _,wall in pairs(walls) do
local foundAcid = false
for _,resistance in pairs(wall.resistances) do
if resistance.type == "acid" then
resistance.percent = 60
foundAcid = true
break
end
end
if not foundAcid then
wall.resistances[#wall.resistances+1] = {type="acid",percent=60}
end
end
end
return vanillaUpdates