1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-24 20:14:35 +02:00

FACTO-269: Hives now produce two upper tier units

This commit is contained in:
Aaron Veden 2023-03-22 18:03:22 -07:00
parent 3725669857
commit 1d25ddc86d
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
3 changed files with 18 additions and 18 deletions

View File

@ -15,7 +15,7 @@ Version: 3.2.0
- Added a mod setting to toggle the purple settler cloud
- When enemies die there body parts can fill in water tiles. Can be disabled in mod settings.
- Added base mutation history to prevent mutations to previously mutated factions. Configurable amount of history in Mod Settings.
- Hives now produce a single upper tier unit
- Hives now produce two upper tier units
- Hives now have a controlled expansion that doesn't use the unit-spawner non-unit spawning capabilities of the factorio engine
Compatibility:
- Added interface for adding and removing excluded surfaces

View File

@ -545,7 +545,7 @@ constants.FACTION_SET[#constants.FACTION_SET+1] = {
majorResistances = {},
minorResistances = {},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
drops = {"nilArtifact"},
buildSets = {
{name="biter", tierStart=1, tierEnd=10},
@ -629,7 +629,7 @@ if settings.startup["rampant--acidEnemy"].value then
majorResistances = {"acid"},
minorResistances = {"poison"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
drops = {"greenArtifact"},
buildSets = {
{name="biter", tierStart=1, tierEnd=10},
@ -705,7 +705,7 @@ if settings.startup["rampant--laserEnemy"].value then
type = "hive",
name = "hive",
majorResistances = {"laser", "electric"},
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"blueArtifact"},
buildSets = {
@ -788,7 +788,7 @@ if settings.startup["rampant--fireEnemy"].value then
name = "hive",
majorResistances = {"fire", "acid"},
minorResistances = {},
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"redArtifact"},
buildSets = {
@ -850,7 +850,7 @@ if settings.startup["rampant--infernoEnemy"].value then
name = "hive",
majorResistances = {"fire", "acid"},
minorResistances = {},
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"orangeArtifact"},
buildSets = {
@ -917,7 +917,7 @@ if settings.startup["rampant--waspEnemy"].value then
{
type = "hive",
name = "hive",
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"purpleArtifact"},
buildSets = {
@ -993,7 +993,7 @@ if settings.startup["rampant--spawnerEnemy"].value then
{
type = "hive",
name = "hive",
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"orangeArtifact"},
buildSets = {
@ -1054,7 +1054,7 @@ if settings.startup["rampant--electricEnemy"].value then
name = "hive",
majorResistances = {"electric"},
minorResistances = {"laser"},
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"blueArtifact"},
buildSets = {
@ -1116,7 +1116,7 @@ if settings.startup["rampant--physicalEnemy"].value then
name = "hive",
majorResistances = {"physical", "explosion"},
minorResistances = {"laser", "electric"},
attributes = {"highHealth", "bigger", "spawnDuringDays", "singleUnit"},
attributes = {"highHealth", "bigger", "spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"redArtifact"},
buildSets = {
@ -1179,7 +1179,7 @@ if settings.startup["rampant--trollEnemy"].value then
name = "hive",
minorResistances = {"physical", "explosion"},
majorWeaknesses = {"fire"},
attributes = {"highestHealth", "bigger", "highRegen","spawnDuringDays", "singleUnit"},
attributes = {"highestHealth", "bigger", "highRegen","spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"greenArtifact"},
buildSets = {
@ -1245,7 +1245,7 @@ if settings.startup["rampant--poisonEnemy"].value then
majorResistances = {"poison"},
minorResistances = {"fire"},
minorWeaknesses = {"electric", "explosion", "laser"},
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"greenArtifact"},
buildSets = {
@ -1306,7 +1306,7 @@ if settings.startup["rampant--suicideEnemy"].value then
name = "hive",
majorResistances = {"explosion"},
minorResistances = {"poison"},
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"yellowArtifact"},
buildSets = {
@ -1366,7 +1366,7 @@ if settings.startup["rampant--nuclearEnemy"].value then
name = "hive",
majorResistances = {"explosion"},
minorResistances = {"fire"},
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"yellowArtifact"},
buildSets = {
@ -1426,7 +1426,7 @@ if settings.startup["rampant--energyThiefEnemy"].value then
type = "hive",
name = "hive",
majorResistances = {"electric", "laser"},
attributes = {"spawnDuringDays", "singleUnit"},
attributes = {"spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"blueArtifact"},
buildSets = {
@ -1509,7 +1509,7 @@ if settings.startup["rampant--fastEnemy"].value then
name = "hive",
majorResistances = {},
minorResistances = {"explosion"},
attributes = {"quickSpawning", "spawnDuringDays", "singleUnit"},
attributes = {"quickSpawning", "spawnDuringDays", "twoUnits"},
acceptRate = {tierStart=2, tierEnd=10, tierChanceStart=0.001, tierChanceEnd=0.0175},
drops = {"purpleArtifact"},
buildSets = {

View File

@ -822,8 +822,8 @@ local function fillEntityTemplate(entity)
entity.maxSpawnDarkness = 0.45
elseif (attribute == "followsPlayer") then
entity.followsPlayer = true
elseif (attribute == "singleUnit") then
entity.unitsOwned = 1
elseif (attribute == "twoUnits") then
entity.unitsOwned = 2
entity.unitsToSpawn = 30
elseif (attribute == "stationary") then
entity.movement = 0