1
0
mirror of https://github.com/veden/Rampant.git synced 2025-03-17 20:58:35 +02:00

FACTO-270: Reduced enemy entity shrinking by mod setting

This commit is contained in:
Aaron Veden 2023-03-22 17:57:58 -07:00
parent f027e194bf
commit 14b450d54e
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
4 changed files with 11 additions and 9 deletions

View File

@ -40,6 +40,8 @@ Version: 3.2.0
- Enemy regional bases now are centered on the average of all chunks that are part of the base
- Set number of chunks to max evolution from 0,0 to 300
- Settler expansion cooldown is now different for every base instead of the same for all bases
- Changed reduction collision boxes of enemy entities to 25% instead of 50% and enemy units to 30% instead of 80%
- Changed mod settings default to false for shrink enemy buildings
Bugfixes:
- Removed layer-13 from projectiles
- script_raised_built now looks for enemy faction and registers as needed

View File

@ -72,8 +72,8 @@ for k, unit in pairs(data.raw["unit"]) do
if (string.find(k, "biter") or string.find(k, "spitter")) and unit.collision_box then
if settings.startup["rampant--enableSwarm"].value then
unit.collision_box = {
{unit.collision_box[1][1] * 0.20, unit.collision_box[1][2] * 0.20},
{unit.collision_box[2][1] * 0.20, unit.collision_box[2][2] * 0.20}
{unit.collision_box[1][1] * 0.70, unit.collision_box[1][2] * 0.70},
{unit.collision_box[2][1] * 0.70, unit.collision_box[2][2] * 0.70}
}
end
@ -90,8 +90,8 @@ if settings.startup["rampant--enableShrinkNestsAndWorms"].value then
for k, unit in pairs(data.raw["unit-spawner"]) do
if (string.find(k, "biter") or string.find(k, "spitter") or string.find(k, "hive")) and unit.collision_box then
unit.collision_box = {
{unit.collision_box[1][1] * 0.50, unit.collision_box[1][2] * 0.50},
{unit.collision_box[2][1] * 0.50, unit.collision_box[2][2] * 0.50}
{unit.collision_box[1][1] * 0.75, unit.collision_box[1][2] * 0.75},
{unit.collision_box[2][1] * 0.75, unit.collision_box[2][2] * 0.75}
}
end
end
@ -99,8 +99,8 @@ if settings.startup["rampant--enableShrinkNestsAndWorms"].value then
for k, unit in pairs(data.raw["turret"]) do
if string.find(k, "worm") and unit.collision_box then
unit.collision_box = {
{unit.collision_box[1][1] * 0.50, unit.collision_box[1][2] * 0.50},
{unit.collision_box[2][1] * 0.50, unit.collision_box[2][2] * 0.50}
{unit.collision_box[1][1] * 0.75, unit.collision_box[1][2] * 0.75},
{unit.collision_box[2][1] * 0.75, unit.collision_box[2][2] * 0.75}
}
end
end

View File

@ -242,7 +242,7 @@ rampant--aiPointsPrintSpendingToChat=Print a message to chat whenever Rampant sp
rampant--aiPointsPrintGainsToChat=Print a message to chat whenever Rampant gains points. Does not show passive point generation. Keep disabled for the hardest Rampant experience. Heads up: can fill up chat quickly during busy battles!
rampant--addWallResistanceAcid=Toggling this will cause a %60 acid resistance to be added to all wall entities to reduce the damage done by spitters to walls.
rampant--removeBloodParticles=The blood particles that are created when biters are being killed can cause UPS spikes, this removes them.
rampant--enableSwarm=This reduces the size of the unit collision_mask causing them to reduce pathing collisions and smooth out the attacks
rampant--enableSwarm=This reduces the size of the unit collision_mask by 30% causing them to reduce pathing collisions and smooth out the attacks. Less needed since base factorio no longer has enemy units collide with each other.
rampant--attack-warning=Shows a message warning players that an attack wave is incoming
rampant--newEnemies=Adds news enemies that will be dispersed over the world. This increases the RAM requirements. With 1 variation for each biter, worm, and nest and 5 tiers expect upto a 2GB RAM increase. With 20 variations and 10 tiers set expect up to 9GB RAM increase. Variations add randomness to each tier of biter, worms, or nests. Tiers are the power level of the biters.
rampant--enemySeed=The seed that powers all of the unit generation, so change this if you want the enemy stats to change
@ -256,7 +256,7 @@ rampant--peacefulAIToggle=The Rampant AI can roll the peaceful state. If this is
rampant--printAIStateChanges=Gives you information in the game chat about Rampant's AI state. Messages are displayed for each surface. Disable for the hardest Rampant experience.
rampant--debugTemperament=Prints to chat AI temperament information that controls AI state rolls. This is used for debugging.
rampant--enableShrinkNestsAndWorms=Reduce the collision box size of nests and worms by 50%. May cause overlapping entities due to the collision box being smaller than the entity graphic.
rampant--enableShrinkNestsAndWorms=Reduce the collision box size of nests and worms by 25%. May cause overlapping entities due to the collision box being smaller than the entity graphic.
rampant--attackWaveGenerationUsePlayerProximity=Include player pheromones amount for threshold on chunks with biter nests that will generate a Rampant attack wave. DOES NOT affect vanilla biters waves
rampant--attackPlayerThreshold=The score that a chunk must reach for it to contribute to the attack threshold. Increasing reduces player pheromone cloud impact.

View File

@ -129,7 +129,7 @@ data:extend({
name = "rampant--enableShrinkNestsAndWorms",
description = "rampant--enableShrinkNestsAndWorms",
setting_type = "startup",
default_value = true,
default_value = false,
order = "b[modifier]-j[unit]",
per_user = false
},