1
0
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:
Aaron Veden 2022-01-01 18:52:40 -08:00
parent 3c11f098a5
commit 6122b0f6f8
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
3 changed files with 21 additions and 1 deletions

View File

@ -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:

View File

@ -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

View File

@ -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"]
}