mirror of
https://github.com/veden/Rampant.git
synced 2024-12-26 20:54:12 +02:00
d407c84: Added mod setting for toggling purple settler cloud
This commit is contained in:
parent
bf854dcf72
commit
798d3cd968
@ -11,6 +11,7 @@ Version: 3.2.0
|
||||
- Added minimum evolution of 20% before faction adaptation will happen with mod setting to configure
|
||||
- Improved the potential field pheromone distribution
|
||||
- Added long term death pheromone that overtime will cause chunks saturated in death to be avoided more frequently and settled less
|
||||
- Added a mod setting to toggle the purple settler cloud
|
||||
Compatibility:
|
||||
- Added interface for adding and removing excluded surfaces
|
||||
Tweaks:
|
||||
|
20
control.lua
20
control.lua
@ -280,6 +280,8 @@ local function onModSettingsChange(event)
|
||||
universe["printAIStateChanges"] = settings.global["rampant--printAIStateChanges"].value
|
||||
universe["debugTemperament"] = settings.global["rampant--debugTemperament"].value
|
||||
|
||||
universe["enabledPurpleSettlerCloud"] = settings.global["rampant--enabledPurpleSettlerCloud"].value
|
||||
|
||||
universe["AI_MAX_SQUAD_COUNT"] = settings.global["rampant--maxNumberOfSquads"].value
|
||||
universe["AI_MAX_BUILDER_COUNT"] = settings.global["rampant--maxNumberOfBuilders"].value
|
||||
universe["AI_MAX_VANILLA_SQUAD_COUNT"] = universe["AI_MAX_SQUAD_COUNT"] * 0.65
|
||||
@ -980,14 +982,16 @@ local function onBuilderArrived(event)
|
||||
if universe.PRINT_BASE_SETTLING then
|
||||
game.print(map.surface.name.." Settled: [gps=" .. builder.position.x .. "," .. builder.position.y .."]")
|
||||
end
|
||||
local len = universe.settlePurpleCloud.len + 1
|
||||
universe.settlePurpleCloud.len = len
|
||||
universe.settlePurpleCloud[len] = {
|
||||
map = map,
|
||||
position = builder.position,
|
||||
squad = builder,
|
||||
tick = event.tick + SETTLE_CLOUD_WARMUP
|
||||
}
|
||||
if universe.enabledPurpleSettlerCloud then
|
||||
local len = universe.settlePurpleCloud.len + 1
|
||||
universe.settlePurpleCloud.len = len
|
||||
universe.settlePurpleCloud[len] = {
|
||||
map = map,
|
||||
position = builder.position,
|
||||
squad = builder,
|
||||
tick = event.tick + SETTLE_CLOUD_WARMUP
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
-- hooks
|
||||
|
@ -78,6 +78,7 @@ spawner-proxy-3-rampant=Spawner Proxy
|
||||
[entity-description]
|
||||
|
||||
[mod-setting-name]
|
||||
rampant--enabledPurpleSettlerCloud=World: Enable Purple Cloud
|
||||
rampant--minimumAdaptationEvolution=AI: Minimum Adaptation Evolution
|
||||
rampant--printBaseSettling=AI: Print when settlers start building
|
||||
rampant--printAwakenMessage=World: Print when initial peace ends
|
||||
@ -205,6 +206,7 @@ rampant--enableFadeTime=Enable corpse fade time
|
||||
rampant--temperamentRateModifier=AI: Temperament Rate Modifier
|
||||
|
||||
[mod-setting-description]
|
||||
rampant--enabledPurpleSettlerCloud=Toggle the purple cloud that spawns when a settler group starts building a nest.
|
||||
rampant--minimumAdaptationEvolution=The minimum evolution that must be reached before bases will be begin to mutate. Only has an effect when Rampant New Enemies are enabled.
|
||||
rampant--printBaseSettling=Print a message to the console when settlers begin building a nest
|
||||
rampant--printAwakenMessage=Print a message to the console when the initial peace time ends
|
||||
|
@ -510,6 +510,15 @@ data:extend({
|
||||
per_user = false
|
||||
},
|
||||
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "rampant--enabledPurpleSettlerCloud",
|
||||
setting_type = "runtime-global",
|
||||
default_value = true,
|
||||
order = "m[total]-c[ai]",
|
||||
per_user = false
|
||||
},
|
||||
|
||||
{
|
||||
type = "bool-setting",
|
||||
name = "rampant--peacefulAIToggle",
|
||||
|
Loading…
Reference in New Issue
Block a user