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:
parent
870f0f83db
commit
7895191e9e
@ -3,6 +3,7 @@ Version: 1.1.5
|
|||||||
Date: 23. 11. 2021
|
Date: 23. 11. 2021
|
||||||
Tweaks:
|
Tweaks:
|
||||||
- Doubled the processing rate of regional faction bases with new enemies
|
- 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:
|
Bugfixes:
|
||||||
- Fixed vengence squads only processing half the expected chunks
|
- Fixed vengence squads only processing half the expected chunks
|
||||||
- Fixed nest processing only processing half the nests (Thank you Dimm2101)
|
- Fixed nest processing only processing half the nests (Thank you Dimm2101)
|
||||||
|
@ -215,6 +215,7 @@ local function findEntityUpgrade(baseAlignment, currentEvo, evoIndex, originalEn
|
|||||||
if evolve then
|
if evolve then
|
||||||
local chunk = getChunkByPosition(map, originalEntity.position)
|
local chunk = getChunkByPosition(map, originalEntity.position)
|
||||||
local makeHive = (chunk ~= -1) and (getResourceGenerator(map, chunk) > 0) and (mRandom() < 0.2)
|
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"))
|
return initialEntityUpgrade(baseAlignment, tier, maxTier, map, (makeHive and "hive"))
|
||||||
else
|
else
|
||||||
return entityUpgrade(baseAlignment, tier, maxTier, originalEntity, map)
|
return entityUpgrade(baseAlignment, tier, maxTier, originalEntity, map)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user