1
0
mirror of https://github.com/veden/Rampant.git synced 2025-02-05 13:14:51 +02:00

added hive spawn chance outside resource patches

This commit is contained in:
Aaron Veden 2021-11-24 20:52:44 -08:00
parent 870f0f83db
commit 7895191e9e
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ Version: 1.1.5
Date: 23. 11. 2021
Tweaks:
- Doubled the processing rate of regional faction bases with new enemies
- Added a small chance (0.5%) that Hives can spawn outside resource patches (Thank you Dimm2101)
Bugfixes:
- Fixed vengence squads only processing half the expected chunks
- Fixed nest processing only processing half the nests (Thank you Dimm2101)

View File

@ -215,6 +215,7 @@ local function findEntityUpgrade(baseAlignment, currentEvo, evoIndex, originalEn
if evolve then
local chunk = getChunkByPosition(map, originalEntity.position)
local makeHive = (chunk ~= -1) and (getResourceGenerator(map, chunk) > 0) and (mRandom() < 0.2)
makeHive = makeHive or (not makeHive and (mRandom() < 0.005))
return initialEntityUpgrade(baseAlignment, tier, maxTier, map, (makeHive and "hive"))
else
return entityUpgrade(baseAlignment, tier, maxTier, originalEntity, map)