1
0
mirror of https://github.com/veden/Rampant.git synced 2025-02-01 13:07:53 +02:00

first steps

This commit is contained in:
Aaron Veden 2018-07-19 21:00:46 -07:00
parent 9e19e82f4e
commit 1acc706baa

View File

@ -33,20 +33,25 @@ end
function ne.processNEUnitClass(natives, surface)
local position = { x = 0, y = 0 }
local entity = surface.create_entity({
name = "biter-spawner",
position = position
})
fileEntity(BASE_ALIGNMENT_NE, entity, natives.evolutionTableUnitSpawner, 0.0)
entity.destroy()
entity = surface.create_entity({
name = "spitter-spawner",
position = position
})
fileEntity(BASE_ALIGNMENT_NE, entity, natives.evolutionTableUnitSpawner, 0.0)
entity.destroy()
if settings.startup["NE_Blue_Spawners"].value then
local entity = surface.create_entity({
name = "ne-spawner-blue",
position = position
})
fileEntity(BASE_ALIGNMENT_NE_BLUE, entity, natives.evolutionTableUnitSpawner, 0.0)
entity.destroy()
end
if settings.startup["NE_Red_Spawners"].value then
local entity = surface.create_entity({
name = "ne-spawner-red",
position = position
})
fileEntity(BASE_ALIGNMENT_NE_RED, entity, natives.evolutionTableUnitSpawner, 0.0)
entity.destroy()
end
if ENABLED_BOBS_UNITS then
entity = surface.create_entity({