1
0
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:
Aaron Veden 2023-03-22 20:35:06 -07:00
parent 1d25ddc86d
commit 5783d46b4e
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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