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:
parent
909104a3e4
commit
c87bae0f27
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user