diff --git a/oregen-manager.lua b/oregen-manager.lua index 3cf8da1..922e09f 100644 --- a/oregen-manager.lua +++ b/oregen-manager.lua @@ -38,21 +38,6 @@ local RECIPES = { local SLEEP_T = 20 --- logic: keep a certain amount of certain items in stock in STOCK via --- RECIPES. while the number is over a certain amount, excess can be used --- to keep items in stock in EXPORT_STORAGE --- e.g. lower_lim is 100, upper_lim is 200. export_amt is 100 --- when below 100, go into recipe mode, producing the item --- when above 200, go into export mode, sending items to export until there are --- 100 in EXPORT_STORAGE or until at or below 100 in stock (lower_lim) --- i.e. mode = match (stock_amt, current_mode) { --- (x, _), x <= lower_lim = RecipeMode; --- (x, _), x >= upper_lim = ExportMode; --- (_, curr) = curr; --- } --- in order to push the other products through the system, they will be checked --- and sent if enough of them accrue - function createModes (items) local result = {} for item, _ in pairs(items) do