mirror of
https://github.com/veden/Rampant.git
synced 2025-03-17 20:58:35 +02:00
FACTO-271: Decoupled settler cooldown between bases
This commit is contained in:
parent
5d6519c640
commit
f027e194bf
@ -39,6 +39,7 @@ Version: 3.2.0
|
||||
- Vengence settlers now cost ~3x of vengence squad
|
||||
- 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
|
||||
Bugfixes:
|
||||
- Removed layer-13 from projectiles
|
||||
- script_raised_built now looks for enemy faction and registers as needed
|
||||
|
@ -876,12 +876,6 @@ function BaseUtils.planning(evolutionLevel)
|
||||
Universe.expansionMaxSize)
|
||||
Universe.settlerWaveDeviation = (Universe.settlerWaveSize * 0.33)
|
||||
|
||||
Universe.settlerCooldown = randomTickDuration(Universe.random,
|
||||
Universe.expansionMinTime,
|
||||
mFloor(linearInterpolation(evolutionLevel ^ 1.66667,
|
||||
Universe.expansionMaxTime,
|
||||
Universe.expansionMinTime)))
|
||||
|
||||
Universe.unitRefundAmount = AI_UNIT_REFUND * evolutionLevel
|
||||
Universe.kamikazeThreshold = NO_RETREAT_BASE_PERCENT + (evolutionLevel * NO_RETREAT_EVOLUTION_BONUS_MAX)
|
||||
end
|
||||
@ -894,7 +888,12 @@ local function processBase(base, tick)
|
||||
if (base.stateAI == BASE_AI_STATE_MIGRATING or base.stateAI == BASE_AI_STATE_SIEGE)
|
||||
and base.resetExpensionGroupsTick <= tick
|
||||
then
|
||||
base.resetExpensionGroupsTick = tick + Universe.settlerCooldown
|
||||
local randomDuration = randomTickDuration(Universe.random,
|
||||
Universe.expansionMinTime,
|
||||
mFloor(linearInterpolation(Universe.evolutionLevel ^ 1.66667,
|
||||
Universe.expansionMaxTime,
|
||||
Universe.expansionMinTime)))
|
||||
base.resetExpensionGroupsTick = tick + randomDuration
|
||||
base.sentExpansionGroups = 0
|
||||
end
|
||||
|
||||
|
@ -442,7 +442,6 @@ function Upgrade.addUniverseProperties()
|
||||
Universe.kamikazeThreshold = 0
|
||||
Universe.attackWaveLowerBound = 1
|
||||
|
||||
Universe.settlerCooldown = 0
|
||||
Universe.settlerWaveDeviation = 0
|
||||
Universe.settlerWaveSize = 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user