mirror of
https://github.com/veden/Rampant.git
synced 2024-12-26 20:54:12 +02:00
FACTO-263: Added particle count scaler for new enemies
This commit is contained in:
parent
90e5ff1a8d
commit
d6562329aa
@ -78,6 +78,7 @@ spawner-proxy-3-rampant=Spawner Proxy
|
||||
[entity-description]
|
||||
|
||||
[mod-setting-name]
|
||||
rampant--scaleParticleCount=Optimization: Scale blood particle count
|
||||
rampant--maxBaseAlignmentHistory=World: Max Base Mutation History
|
||||
rampant--enabledPurpleSettlerCloud=World: Enable Purple Cloud
|
||||
rampant--minimumAdaptationEvolution=AI: Minimum Adaptation Evolution
|
||||
@ -334,6 +335,8 @@ rampant--maxNumberOfBuilders=More builders requires more UPS.
|
||||
rampant--maxNumberOfSquads=More squads requires more UPS.
|
||||
rampant--temperamentRateModifier=Change how quickly Rampant will hit extremes in the ai temperament stat which control attacking and expanding. This is a percentage increase or decrease with 1 being equal to 100%.
|
||||
|
||||
rampant--scaleParticleCount=Only affects new enemies. Reducing the number of blood particles without having to disable blood particles by a percentage. If you want to remove all particles from both new and vanilla enemies use Optimization: Remove blood particles.
|
||||
|
||||
[description]
|
||||
rampant--planetHasAwoken=Rampant: The natives are beginning to react to your presence.
|
||||
rampant-bobs-nee-newEnemies=Bobs enemies or NEE has been detected with Rampants new enemies,\nthe artifacts from each of these mods will still work with Rampants new enemies.\nThe generation of bobs or NEE unit spawners explicitly by Rampant is\nno longer supported when the Rampants new enemies are active.
|
||||
|
@ -654,6 +654,8 @@ end
|
||||
|
||||
function particleUtils.makeBloodFountains(attributes)
|
||||
|
||||
local particleScaler = settings.startup["rampant--scaleParticleCount"].value
|
||||
|
||||
local bloodParticle = makeBloodParticle(attributes)
|
||||
|
||||
data:extend({
|
||||
@ -727,8 +729,8 @@ function particleUtils.makeBloodFountains(attributes)
|
||||
{
|
||||
type = "create-entity",
|
||||
entity_name = attributes.name .. "-blood-fountain-rampant",
|
||||
repeat_count = 10,
|
||||
repeat_count_deviation = 3,
|
||||
repeat_count = math.max(10 * particleScaler, 1),
|
||||
repeat_count_deviation = math.max(3 * particleScaler, 1),
|
||||
offset_deviation = {{-0.4, -0.4}, {0.4, 0.4}}
|
||||
},
|
||||
{
|
||||
@ -784,8 +786,8 @@ function particleUtils.makeBloodFountains(attributes)
|
||||
{
|
||||
{
|
||||
type = "create-particle",
|
||||
repeat_count = 65,
|
||||
repeat_count_deviation = 20,
|
||||
repeat_count = math.max(65 * particleScaler, 1),
|
||||
repeat_count_deviation = math.max(20 * particleScaler, 1),
|
||||
particle_name = bloodParticle,
|
||||
initial_height = 0.5,
|
||||
speed_from_center = 0.08,
|
||||
@ -847,8 +849,8 @@ function particleUtils.makeBloodFountains(attributes)
|
||||
{
|
||||
type = "create-entity",
|
||||
entity_name = attributes.name .. "-blood-fountain-rampant",
|
||||
repeat_count = 20,
|
||||
repeat_count_deviation = 5,
|
||||
repeat_count = math.max(20 * particleScaler, 1),
|
||||
repeat_count_deviation = math.max(5 * particleScaler, 1),
|
||||
offset_deviation = {{-0.4, -0.4}, {0.4, 0.4}}
|
||||
}
|
||||
}
|
||||
@ -880,8 +882,8 @@ function particleUtils.makeBloodFountains(attributes)
|
||||
{
|
||||
{
|
||||
type = "create-particle",
|
||||
repeat_count = 100,
|
||||
repeat_count_deviation = 20,
|
||||
repeat_count = math.max(100 * particleScaler, 1),
|
||||
repeat_count_deviation = math.max(20 * particleScaler, 1),
|
||||
particle_name = bloodParticle,
|
||||
initial_height = 0.5,
|
||||
speed_from_center = 0.08,
|
||||
@ -943,8 +945,8 @@ function particleUtils.makeBloodFountains(attributes)
|
||||
{
|
||||
type = "create-entity",
|
||||
entity_name = attributes.name .. "-blood-fountain-big-rampant",
|
||||
repeat_count = 30,
|
||||
repeat_count_deviation = 5,
|
||||
repeat_count = math.max(30 * particleScaler, 1),
|
||||
repeat_count_deviation = math.max(5 * particleScaler, 1),
|
||||
offset_deviation = {{-1.6, -1.6}, {1.6, 1.6}}
|
||||
}
|
||||
}
|
||||
|
12
settings.lua
12
settings.lua
@ -670,6 +670,18 @@ data:extend({
|
||||
per_user = false
|
||||
},
|
||||
|
||||
{
|
||||
type = "double-setting",
|
||||
name = "rampant--scaleParticleCount",
|
||||
description = "rampant--scaleParticleCount",
|
||||
setting_type = "startup",
|
||||
default_value = 1,
|
||||
minimum_value = 0.01,
|
||||
maximum_value = 5.0,
|
||||
order = "n[modifier]-a[optimize]",
|
||||
per_user = false
|
||||
},
|
||||
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "rampant--enableLandfillOnDeath",
|
||||
|
Loading…
Reference in New Issue
Block a user