McGuten/Factorio5DimMods

Basic compatibility with Schall's Endgame Evolution

jacobwatkinsgit opened this issue · 0 comments

In 5dim_core/lib/enemies/generation-[biter/spitter].lua, if inputs.new is equal to false the generator function results in biter-spawner or spitter-spawner, and overwrites the "spawner.result_units" table. This causes Schall's Endgame Evolution to completely not work. The biter-spawner table is overwritten by the else around line 122 of generation-biter.lua . The logic is a bit weird around those lines (a single if/else would do), but I wrapped the whole spawner.result_units section in "if spawner.name ~= "biter-spawner" then ... end" . A much simpler way is if inputs.new then overwrite the result_units, otherwise don't. The existing units can still have their evolution and probabilities modified, but overwriting the whole table will break any mod that adds custom units to the default spawners.