i have this piece of code
data.raw["unit-spawner"]["biter-spawner"].result_units = (function()
local res = {}
res[1] = {"behemoth-biter", {{0.85, 0.0}, {0.90, 0.1}, {1.0, 0.25}}} end
return res
end)()
and i know what i should put it in data-final-fixes.lua
but code is incorrect + i want to change this parameters for all 8 types of enemies (4 biters 4 spitters)
how this should look?
evolution factor for biters
-
- Burner Inserter
- Posts: 7
- Joined: Sun Sep 23, 2018 4:15 pm
- Contact:
Re: evolution factor for biters
Find this parameters here
viewtopic.php?f=135&t=45107
viewtopic.php?f=135&t=45107
-
- Burner Inserter
- Posts: 7
- Joined: Sun Sep 23, 2018 4:15 pm
- Contact:
Re: evolution factor for biters
I am illiterate, my abilities is very basic, all i want is shift appearance of tier3 from 0.5 to 0.6 evo and behemoths from 0.9 to 0.85 evo + remore tier2 aliens from spawn table after ~0.9
what should i do with all this stuff what you suggest, i am not even able to scroll base tables in your post because i too dumb.
Actually, moderator move my post from mod suggestion topic to mod help, i am just realise it...
Re: evolution factor for biters
The code that you need: It's not easy to use it as list.IVAN_PIDORVAN wrote: ↑Mon Jun 03, 2019 1:54 pmI am illiterate, my abilities is very basic, all i want is shift appearance of tier3 from 0.5 to 0.6 evo and behemoths from 0.9 to 0.85 evo + remore tier2 aliens from spawn table after ~0.9
The same can be get as table with
vanilla result (added lines and spaces):log ('biter_spawner_result_units = ' ..serpent.line (data.raw["unit-spawner"]["biter-spawner"].result_units))
Code: Select all
biter_spawner_result_units = {
{"small-biter", {{0, 0.3}, {0.6, 0}}},
{"medium-biter", {{0.2, 0}, {0.6, 0.3}, {0.7, 0.1}}},
{"big-biter", {{0.5, 0}, {1, 0.4}}},
{"behemoth-biter", {{0.9, 0}, {1, 0.3}}}
}
Set parameters as you want:
Code: Select all
biter_spawner_result_units = {
{"small-biter", {{0, 0.3}, {0.6, 0}}},
{"medium-biter", {{0.2, 0}, {0.6, 0.3}, {0.7, 0.1}, {0.9, 0}}}, -- by 90% evolution will be 0% chance of medium biter spawning
{"big-biter", {{0.6, 0}, {1, 0.4}}}, -- first argument is now 0.6
{"behemoth-biter", {{0.85, 0}, {1, 0.3}}} -- first argument is now 0.85
}
data.raw["unit-spawner"]["biter-spawner"].result_units = biter_spawner_result_units
spitters
-
- Burner Inserter
- Posts: 7
- Joined: Sun Sep 23, 2018 4:15 pm
- Contact:
Re: evolution factor for biters
Thak you m8! I appreciate this