max_count_of_owned_units
max_friends_around_to_spawn
spawning_cooldown
In data.lua I you can change them by using:
data.raw["unit-spawner"]["biter-spawner"].maximum_count_of_owned_units = 25
data.raw["unit-spawner"]["biter-spawner"].max_friends_around_to_spawn = 14
data.raw["unit-spawner"]["biter-spawner"].spawning_cooldown = {900, 150}
I know it's something similar to:
Code: Select all
game.evolutionfactor.pollution_factor = 0
game.evolutionfactor.time_factor = 0
game.onevent(defines.events.onentitydied, function(event)
if event.entity.force= game.forces.enemy and event.entity.type = "unit-spawner" then
game.evolutionfactor= game.evolutionfactor + X,
end
end)
Also, how do you dictate priority for mods, Let's say I have DyTech, Bob's and Vanilla of course. Now I create a mod and want to override/prioritize my settings, how is that handled?
EDIT: Thanks kds71, done through dependencies.
Thanks.