1
0
mirror of https://github.com/veden/Rampant.git synced 2024-12-26 20:54:12 +02:00

FACTO-11: reduced hive spawn frequency outside resource chunks by 10x

This commit is contained in:
Aaron Veden 2022-01-14 14:16:06 -08:00
parent 909104a3e4
commit c87bae0f27
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ Date: 29. 12. 2021
- Set maximum value on enemy seed to 4294967295
- Slightly increased spacing between enemy structures
- License has changed to GPLv3
- Reduced new enemy hive frequency outside resoure chunks by 10x
Bugfixes:
- Fixed chunkPack nil in processNests (Thanks Skallywaggz for the report)
- Fixed random generator seed overflow (Thanks NeveHanter for the report)

View File

@ -232,7 +232,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 (map.random() < 0.2)
makeHive = makeHive or (not makeHive and (map.random() < 0.005))
makeHive = makeHive or (not makeHive and (map.random() < 0.0005))
return initialEntityUpgrade(baseAlignment, tier, maxTier, map, (makeHive and "hive"))
else
return entityUpgrade(baseAlignment, tier, maxTier, originalEntity, map)