mirror of
https://github.com/veden/Rampant.git
synced 2025-02-05 13:14:51 +02:00
FACTO-268: Initial peace setting now starts from when the mod is added
This commit is contained in:
parent
1d25ddc86d
commit
5783d46b4e
@ -42,6 +42,7 @@ Version: 3.2.0
|
||||
- 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
|
||||
- Initial peace mod settings now takes into account when the mod is added to the game
|
||||
Bugfixes:
|
||||
- Removed layer-13 from projectiles
|
||||
- script_raised_built now looks for enemy faction and registers as needed
|
||||
|
@ -296,7 +296,9 @@ local function onModSettingsChange(event)
|
||||
|
||||
Universe["MAX_BASE_ALIGNMENT_HISTORY"] = settings.global["rampant--maxBaseAlignmentHistory"].value
|
||||
|
||||
Universe["initialPeaceTime"] = settings.global["rampant--initialPeaceTime"].value * TICKS_A_MINUTE
|
||||
Universe["initialPeaceTime"] =
|
||||
(settings.global["rampant--initialPeaceTime"].value * TICKS_A_MINUTE) + Universe.modAddedTick
|
||||
|
||||
Universe["printAwakenMessage"] = settings.global["rampant--printAwakenMessage"].value
|
||||
|
||||
Universe["minimumAdaptationEvolution"] = settings.global["rampant--minimumAdaptationEvolution"].value
|
||||
|
@ -546,6 +546,8 @@ function Upgrade.attempt()
|
||||
Universe.expansionMediumTargetDistance = (Universe.expansionMaxDistance + MINIMUM_EXPANSION_DISTANCE) * 0.50
|
||||
Universe.expansionHighTargetDistance = (Universe.expansionMaxDistance + MINIMUM_EXPANSION_DISTANCE) * 0.75
|
||||
Universe.expansionDistanceDeviation = Universe.expansionMediumTargetDistance * 0.33
|
||||
|
||||
Universe.modAddedTick = game.tick
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user