mirror of
https://github.com/veden/Rampant.git
synced 2025-02-05 13:14:51 +02:00
FACTO-183: Capped max unit resistance at 99%
This commit is contained in:
parent
7be2a03c1a
commit
be0961267e
@ -13,6 +13,7 @@ Version: 3.1.2
|
||||
- Increased default mod settings max enemy level to 6
|
||||
- Increased major,minor resistance percents and Increased minor weakness percents primarily in the lower enemy levels
|
||||
- Increased spawner faction spawned biters health by 25%
|
||||
- Capped max unit resistance at 99%
|
||||
Bugfixes:
|
||||
- Fixed sent aggressive squads, builder count, squad count could be negative
|
||||
- Added missing sent and max siege groups on debug log
|
||||
|
@ -520,7 +520,7 @@ local function addMajorResistance(entity, name, tier)
|
||||
local percents = { 80, 80, 84, 84, 89, 89, 93, 93, 97, 97 }
|
||||
entity.resistances[name] = {
|
||||
decrease = roundToNearest(gaussianRandomRangeRG(decreases[tier], decreases[tier] * 0.1, decreases[tier] * 0.85, decreases[tier] * 1.30, xorRandom), 0.1),
|
||||
percent = roundToNearest(gaussianRandomRangeRG(percents[tier], percents[tier] * 0.1, percents[tier] * 0.85, percents[tier] * 1.30, xorRandom), 0.1)
|
||||
percent = roundToNearest(gaussianRandomRangeRG(percents[tier], percents[tier] * 0.1, percents[tier] * 0.85, 0.99, xorRandom), 0.1)
|
||||
}
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user