From 47c4a00cb15d251769d2cb9cb74343a80c290f02 Mon Sep 17 00:00:00 2001 From: Brevven Date: Mon, 6 Mar 2023 00:26:49 -0800 Subject: [PATCH] up --- data-util.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data-util.lua b/data-util.lua index c349049..3e5f0b5 100644 --- a/data-util.lua +++ b/data-util.lua @@ -1,7 +1,6 @@ -- WARNING WARNING WARNING -- This file will be overwritten in mod zipfiles, edit bzlib/data-util.lua -- WARNING WARNING WARNING --- local me = require("me") local util = {} @@ -717,6 +716,8 @@ function multiply_recipe(recipe, multiple) if recipe then if recipe.energy_required then recipe.energy_required = recipe.energy_required * multiple + else + recipe.energy_required = 0.5 * multiple -- 0.5 is factorio default end if recipe.result_count then recipe.result_count = recipe.result_count * multiple @@ -1162,7 +1163,7 @@ function remove_prior_unlocks(tech, recipe) util.remove_recipe_effect(tech, recipe) if technology.prerequisites then for i, prerequisite in pairs(technology.prerequisites) do - -- log("BZZZ removing prior unlocks for " .. tech ..", checking " .. prerequisite) -- Handy Debug :| + log("BZZZ removing prior unlocks for " .. recipe .. " from " .. tech ..", checking " .. prerequisite) -- Handy Debug :| remove_prior_unlocks(prerequisite, recipe) end end