2017-05-17 08:18:25 +02:00
|
|
|
local vanillaBuildings = require("prototypes/buildings/UpdatesVanilla")
|
|
|
|
|
2018-01-24 08:02:06 +02:00
|
|
|
if settings.startup["rampant-newEnemies"].value then
|
|
|
|
require("prototypes/Neutral")
|
|
|
|
require("prototypes/Acid")
|
|
|
|
require("prototypes/Physical")
|
|
|
|
require("prototypes/Suicide")
|
|
|
|
require("prototypes/Fire")
|
|
|
|
require("prototypes/Electric")
|
|
|
|
require("prototypes/Nuclear")
|
|
|
|
require("prototypes/Inferno")
|
2018-01-24 10:07:22 +02:00
|
|
|
require("prototypes/Fast")
|
|
|
|
require("prototypes/Troll")
|
2018-01-24 08:02:06 +02:00
|
|
|
-- require("prototypes/Decaying")
|
2018-01-24 10:07:22 +02:00
|
|
|
-- require("prototypes/Poison")
|
2018-01-24 08:02:06 +02:00
|
|
|
-- require("prototypes/Undying")
|
2018-02-05 05:24:28 +02:00
|
|
|
require("prototypes/Spawner")
|
2018-02-05 02:07:25 +02:00
|
|
|
require("prototypes/Wasp")
|
2018-01-26 02:52:26 +02:00
|
|
|
require("prototypes/Laser")
|
2018-01-24 08:02:06 +02:00
|
|
|
|
2018-01-29 03:51:24 +02:00
|
|
|
for _, unitSpawner in pairs(data.raw["unit-spawner"]) do
|
2018-01-21 09:42:47 +02:00
|
|
|
if (unitSpawner.name ~= "biter-spawner") then
|
2018-02-06 10:01:20 +02:00
|
|
|
unitSpawner.autoplace = nil
|
2018-01-21 09:42:47 +02:00
|
|
|
end
|
|
|
|
end
|
2018-01-29 03:51:24 +02:00
|
|
|
for _, unitSpawner in pairs(data.raw["turret"]) do
|
2018-01-21 09:42:47 +02:00
|
|
|
if (unitSpawner.name ~= "small-worm-turret") then
|
2018-02-06 10:01:20 +02:00
|
|
|
unitSpawner.autoplace = nil
|
2018-01-21 09:42:47 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2018-02-06 10:01:20 +02:00
|
|
|
-- for k, wall in pairs(data.raw["wall"]) do
|
|
|
|
-- if not wall.collision_mask then
|
|
|
|
-- wall.collision_mask = {"player-layer", "item-layer", "object-layer" }
|
|
|
|
-- end
|
|
|
|
-- wall.collision_mask[#wall.collision_mask+1] = "layer-11"
|
|
|
|
-- print(serpent.dump(wall.collision_mask))
|
|
|
|
-- end
|
|
|
|
|
2017-11-27 00:10:56 +02:00
|
|
|
if settings.startup["rampant-enableSwarm"] then
|
|
|
|
for k, unit in pairs(data.raw["unit"]) do
|
|
|
|
if (string.find(k, "biter") or string.find(k, "spitter")) and unit.collision_box then
|
|
|
|
unit.collision_box = {
|
|
|
|
{unit.collision_box[1][1] * 0.40, unit.collision_box[1][2] * 0.40},
|
|
|
|
{unit.collision_box[2][1] * 0.40, unit.collision_box[2][2] * 0.40}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-05-17 08:18:25 +02:00
|
|
|
if settings.startup["rampant-addWallResistanceAcid"].value then
|
|
|
|
vanillaBuildings.addWallAcidResistance()
|
|
|
|
end
|