mirror of
https://github.com/veden/Rampant.git
synced 2024-12-30 21:19:46 +02:00
limited map processing before switching map
This commit is contained in:
parent
ef80cb8bac
commit
4eb1f66465
@ -24,6 +24,7 @@ Date: 23. 11. 2021
|
||||
- Neutral death events that aren't cliffs are no longer processed
|
||||
- Added support for AbandonedRuins mod
|
||||
- Victory scent is now processed regardless of current active surface
|
||||
- Pheromone map processing only does upto 5% of generated chunks on a surface before switching to the next surface
|
||||
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
|
||||
|
@ -993,7 +993,7 @@ script.on_event(defines.events.on_tick,
|
||||
-- local profiler = game.create_profiler()
|
||||
|
||||
local map = universe.activeMap
|
||||
if (not map) or (universe.processedChunks > #map.processQueue) then
|
||||
if (not map) or (universe.processedChunks > (#map.processQueue * 0.05)) then
|
||||
universe.mapIterator, map = next(universe.maps, universe.mapIterator)
|
||||
if not map then
|
||||
universe.mapIterator, map = next(universe.maps, universe.mapIterator)
|
||||
|
Loading…
Reference in New Issue
Block a user