1
0
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:
Aaron Veden 2022-06-17 16:58:22 -07:00
parent 7be2a03c1a
commit be0961267e
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 1 deletions

View File

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

View File

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