mirror of
https://github.com/veden/Rampant.git
synced 2025-03-17 20:58:35 +02:00
increased chance that a enemy structure is upgraded
This commit is contained in:
parent
8000a0a713
commit
41fba2e653
@ -11,6 +11,7 @@ Date: 23. 11. 2021
|
||||
- Optimized regional base upgrades so that the work is spread over many ticks reducing lag spikes
|
||||
- Optimized adding new chunks to the Rampant in-memory state map
|
||||
Tweaks:
|
||||
- Increase chance to upgrade an enemy structure from 5% to 30%
|
||||
- New enemy regional bases that have two factions now do 75% on one faction and 25% on the faction for building and upgrading enemy structures
|
||||
- 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)
|
||||
|
@ -402,7 +402,7 @@ function baseUtils.processBase(chunk, map, tick, base)
|
||||
point.y = chunk.y + (CHUNK_SIZE * mRandom())
|
||||
|
||||
local upgradeRoll = mRandom()
|
||||
if (base.state == BASE_AI_STATE_ACTIVE) and (upgradeRoll < 0.05) then
|
||||
if (base.state == BASE_AI_STATE_ACTIVE) and (upgradeRoll < 0.30) then
|
||||
local entities = surface.find_entities_filtered(universe.filteredEntitiesPointQueryLimited)
|
||||
if #entities ~= 0 then
|
||||
local entity = entities[1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user