Page 1 of 1

Game Setup Question

Posted: Sat May 13, 2017 5:02 am
by TheSAguy
My mod changes the evolution factors of the game, but it only appears to affect the Default settings.
The below code works on the default game setup, but when I select "Death world" it does not affect the evolution rates.

Can a mod not change the evolution rates of predefined setups?

Code: Select all


	-- percentual increase in the evolve factor for every second (60 ticks). Default = 0.000004																						 
	data.raw["map-settings"]["map-settings"]["enemy_evolution"].time_factor = data.raw["map-settings"]["map-settings"]["enemy_evolution"].time_factor * 0.5

	-- percentual increase in the evolve factor for 1000 PU. Default = 0.000015          
	data.raw["map-settings"]["map-settings"]["enemy_evolution"].pollution_factor = data.raw["map-settings"]["map-settings"]["enemy_evolution"].pollution_factor * 2.0

	-- percentual increase in the evolve factor for every destroyed spawner. Default = 0.002
	data.raw["map-settings"]["map-settings"]["enemy_evolution"].destroy_factor = data.raw["map-settings"]["map-settings"]["enemy_evolution"].destroy_factor * 0.1

Thanks.