I am thinking of adding a single new type to spawners, and I found the following code for splitter-spawner in enemies.lua:
Code: Select all
result_units = (function()
local res = {}
res[1] = {"small-biter", {{0.0, 0.3}, {0.35, 0}}}
res[2] = {"small-spitter", {{0.25, 0.0}, {0.5, 0.3}, {0.7, 0.0}}}
res[3] = {"medium-spitter", {{0.4, 0.0}, {0.7, 0.3}, {0.9, 0.1}}}
res[4] = {"big-spitter", {{0.5, 0.0}, {1.0, 0.4}}}
res[5] = {"behemoth-spitter", {{0.9, 0.0}, {1.0, 0.3}}}
return res
end)(),
Some players probably have other mods doing something to such table. With a brief search on mod portal, most enemy mods are either a complete overhaul, or new spawners, or just minor stats adjustment to biters.
But I want is just adding a quite small number of new enemy to the existing spawner. How to do it? Are there existing mods that I can take reference to?
Thanks for you attention,
Schall