1
0
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:
Aaron Veden 2021-11-26 11:55:50 -08:00
parent 8000a0a713
commit 41fba2e653
No known key found for this signature in database
GPG Key ID: FF5990B1C6DD3F84
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -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]