Hi,
Per my post here. There are 3 things in Vanilla that cause the Evolution to go up.
I'd like to be able to show what Evolution caused by each of these individually please.
% Evolution caused by Time
% Evolution caused by Destruction
% Evolution caused by Pollution (or in the case of Next Gen Evolution or Evo, the caused by Spawner absorption.)
Thanks.
Show Individual Evolution Factors
Re: Show Individual Evolution Factors
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Show Individual Evolution Factors
Print to console:
Don't ask me why some of them are higher than 1.
Code: Select all
/c game.print ('evolution_factor: '.. game.forces['enemy'].evolution_factor)
game.print ('evolution_factor_by_pollution: '.. game.forces['enemy'].evolution_factor_by_pollution)
game.print ('evolution_factor_by_time: '.. game.forces['enemy'].evolution_factor_by_time)
game.print ('evolution_factor_by_killing_spawners: '.. game.forces['enemy'].evolution_factor_by_killing_spawners)
Re: Show Individual Evolution Factors
Great!
Thanks
Thanks
Re: Show Individual Evolution Factors
How to calculate them and why some of them are higher than 1?
Re: Show Individual Evolution Factors
Code: Select all
total_increase = pollution + time + killing_spawners
pollution_percentage = pollution / total_increase * 100
time_percentage = time / total_increase * 100
killing_spawners_percentage = killing_spawners / total_increase * 100
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Show Individual Evolution Factors
It looks like the summ of them must be always 100.Bilka wrote: ↑Wed May 29, 2019 5:52 pmCode: Select all
total_increase = pollution + time + killing_spawners pollution_percentage = pollution / total_increase * 100 time_percentage = time / total_increase * 100 killing_spawners_percentage = killing_spawners / total_increase * 100