From ca6f2420e2440d9225fde9a841c5ac03dd1d86c6 Mon Sep 17 00:00:00 2001 From: hanakocz Date: Thu, 7 Nov 2024 21:29:30 +0100 Subject: [PATCH] added missing functions --- modules/robot_limits.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/robot_limits.lua b/modules/robot_limits.lua index 65d001f2..662faca5 100644 --- a/modules/robot_limits.lua +++ b/modules/robot_limits.lua @@ -93,6 +93,17 @@ local function do_tick() end end +---Gets the amount of damage dealt per second +function Module.get_damage() + return settings.damage_amount +end + +---Sets the amount of damage dealt per second +---@param number integer +function Module.set_damage(number) + settings.damage_amount = number +end + ---Gets the limit to number of logistic robots in single network function Module.get_logistic_robot_limit() return settings.logi_robot_limit @@ -104,6 +115,17 @@ function Module.set_logistic_robot_limit(number) settings.logi_robot_limit = number end +---Gets the limit to number of construction robots in single network +function Module.get_construction_robot_limit() + return settings.cons_robot_limit +end + +---Sets the limit to number of construction robots in single network +---@param number integer +function Module.set_construction_robot_limit(number) + settings.cons_robot_limit = number +end + ---Gets the limit to number of roboports in single network function Module.get_roboport_limit() return settings.roboport_limit