mirror of
https://github.com/veden/Rampant.git
synced 2024-12-26 20:54:12 +02:00
added integration with schallAlienLoot
This commit is contained in:
parent
3c11f098a5
commit
6122b0f6f8
@ -1,6 +1,8 @@
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 2.2.0
|
||||
Date: 29. 12. 2021
|
||||
Improvements:
|
||||
- Added integration with schallAlienLoot (Thank you garrotte for the code snippet)
|
||||
Tweaks:
|
||||
- Set maximum value on enemy seed to 4294967295
|
||||
Bugfixes:
|
||||
|
@ -2,10 +2,28 @@ local vanillaBuildings = require("prototypes/buildings/UpdatesVanilla")
|
||||
|
||||
local swarmUtils = require("prototypes/SwarmUtils")
|
||||
|
||||
local constants = require("libs/Constants")
|
||||
|
||||
|
||||
if settings.startup["rampant--newEnemies"].value then
|
||||
swarmUtils.processFactions()
|
||||
swarmUtils.generateSpawnerProxy(data.raw["unit-spawner"]["neutral-biter-spawner-v1-t10-rampant"].result_units)
|
||||
|
||||
if mods["SchallAlientLoot"] then
|
||||
local SizeLootRampant = {1, 2, 3, 3, 4, 4, 4, 5, 5, 6}
|
||||
for _,faction in pairs(constants.FACTION_SET) do
|
||||
for v=1,settings.startup["rampant--newEnemyVariations"].value do
|
||||
for factionSize = 1, 10 do
|
||||
SchallAlienLoot_add_spawner(faction.type.."-hive-v"..v.."-t"..factionSize.."-rampant")
|
||||
SchallAlienLoot_add_spawner(faction.type.."-spitter-spawner-v"..v.."-t"..factionSize.."-rampant")
|
||||
SchallAlienLoot_add_spawner(faction.type.."-biter-spawner-v"..v.."-t"..factionSize.."-rampant")
|
||||
SchallAlienLoot_add_worm(faction.type.."-worm-v"..v.."-t"..factionSize.."-rampant", factionSize)
|
||||
SchallAlienLoot_add_mover(faction.type.."-spitter-v"..v.."-t"..factionSize.."-rampant", SizeLootRampant[factionSize])
|
||||
SchallAlienLoot_add_mover(faction.type.."-biter-v"..v.."-t"..factionSize.."-rampant", SizeLootRampant[factionSize])
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
else
|
||||
swarmUtils.generateSpawnerProxy(data.raw["unit-spawner"]["biter-spawner"].result_units)
|
||||
end
|
||||
|
@ -6,5 +6,5 @@
|
||||
"author" : "Veden",
|
||||
"homepage" : "https://forums.factorio.com/viewtopic.php?f=94&t=31445",
|
||||
"description" : "Improves the enemies tactics by using potential fields (pheromones) allowing probing of defenses, retreats, reinforcements, counterattacking, breaching, raids, rallying death cry, and player hunting. Uses blockable biter projectiles. Adds new Enemies (disabled by default). Difficulty setting in mod options menu.",
|
||||
"dependencies" : ["base >= 1.1.36", "? bobenemies", "? Natural_Evolution_Enemies >= 0.17.0", "? Clockwork", "? Kux-OrbitalIonCannon", "? Orbital Ion Cannon", "? ArmouredBiters", "? Krastorio2"]
|
||||
"dependencies" : ["base >= 1.1.36", "? bobenemies", "? Natural_Evolution_Enemies >= 0.17.0", "? Clockwork", "? Kux-OrbitalIonCannon", "? Orbital Ion Cannon", "? ArmouredBiters", "? Krastorio2", "? SchallAlienLoot >= 0.17.6"]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user