Aleksei-bird 7c9c708c92 Первый фикс
Пачки некоторых позиций увеличены
2024-03-01 20:54:33 +03:00

67 lines
2.2 KiB
Lua

-- Copyright (C) 2022 veden
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <https://www.gnu.org/licenses/>.
local presents = data.raw['map-gen-presets'].default
if settings.startup["rampant-evolution--shortcut-bar"].value then
data:extend({
{
type = "shortcut",
name = "rampant-evolution--info",
action = "lua",
localised_name = {"controls.rampant-evolution--toggle_evolution_info"},
toggleable = true,
icon =
{
filename = "__core__/graphics/icons/alerts/warning-icon.png",
priority = "extra-high-no-scale",
scale = 0.25,
size = 64,
flags = {"icon"}
}
}
})
end
-- change scenarios like death world
for present, data in pairs(presents) do
if (present ~= "type") and (present ~= "name") and (present ~= "default") then
if not data.advanced_settings then
data.advanced_settings = {
enemy_evolution = {
time_factor=0,
destroy_factor=0,
pollution_factor=0
}
}
else
data.advanced_settings.enemy_evolution = {
time_factor=0,
destroy_factor=0,
pollution_factor=0
}
end
end
end
-- change new map defaults
data.raw['map-settings']['map-settings'].enemy_evolution = {
enabled=true,
time_factor=0,
destroy_factor=0,
pollution_factor=0
}