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

21 lines
610 B
Lua

Repair = require("prototypes/phase-3/repair")
if settings.startup["robot-attrition-repair"].value == "Repair75" then
for _, prototype in pairs(data.raw["logistic-robot"]) do
Repair.make_repair_recipe_and_item(prototype)
Repair.make_robot_attrition_bot_corpse(prototype)
end
end
local base_bot_speed = 0.06
for _, bot in pairs(data.raw["logistic-robot"]) do
if bot.speed > base_bot_speed then
bot.speed = math.pow(bot.speed / base_bot_speed, 0.9) * base_bot_speed
end
end
--[[
TODO:
The falling particle needs to be a projectile instead of a particle so that force is preserved.
]]