rename util
This commit is contained in:
parent
1786d56ca1
commit
26aa272e56
9 changed files with 9 additions and 10 deletions
|
|
@ -5,7 +5,7 @@ require("tungsten-recipe-final-rrr")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
local util = require("__bztungsten__.util");
|
local util = require("__bztungsten__.tungsten-util");
|
||||||
|
|
||||||
-- Only burners can make tungsten carbide in vanilla
|
-- Only burners can make tungsten carbide in vanilla
|
||||||
for i, entity in pairs(data.raw.furnace) do
|
for i, entity in pairs(data.raw.furnace) do
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
-- Enriched Titanium for Krastorio2
|
-- Enriched Titanium for Krastorio2
|
||||||
local util = require("__bztungsten__.util");
|
local util = require("__bztungsten__.tungsten-util");
|
||||||
|
|
||||||
if mods["Krastorio2"] then
|
if mods["Krastorio2"] then
|
||||||
data:extend({
|
data:extend({
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
local resource_autoplace = require('resource-autoplace');
|
local resource_autoplace = require('resource-autoplace');
|
||||||
|
local noise = require('noise');
|
||||||
|
|
||||||
local util = require("__bztungsten__.util");
|
local util = require("__bztungsten__.tungsten-util");
|
||||||
|
|
||||||
if mods["FactorioExtended-Plus-Core"] then
|
if mods["FactorioExtended-Plus-Core"] then
|
||||||
util.remove_raw("item", "tungsten-ore")
|
util.remove_raw("item", "tungsten-ore")
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
local util = require("__bztungsten__.util");
|
local util = require("__bztungsten__.tungsten-util");
|
||||||
|
|
||||||
if mods["Rich-Rocks-Requiem"] then
|
if mods["Rich-Rocks-Requiem"] then
|
||||||
if data.raw.recipe["rrr-stone-processing"] then
|
if data.raw.recipe["rrr-stone-processing"] then
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
-- Deadlock stacking recipes
|
-- Deadlock stacking recipes
|
||||||
|
|
||||||
local util = require("__bztungsten__.util");
|
local util = require("__bztungsten__.tungsten-util");
|
||||||
|
|
||||||
if deadlock then
|
if deadlock then
|
||||||
deadlock.add_stack("tungsten-ore", "__bztungsten__/graphics/icons/stacked/tungsten-ore-stacked.png", "deadlock-stacking-2", 64)
|
deadlock.add_stack("tungsten-ore", "__bztungsten__/graphics/icons/stacked/tungsten-ore-stacked.png", "deadlock-stacking-2", 64)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
-- Additional recipes if Space Exploration mod is enabled
|
-- Additional recipes if Space Exploration mod is enabled
|
||||||
local util = require("__bztungsten__.util");
|
local util = require("__bztungsten__.tungsten-util");
|
||||||
|
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
se_delivery_cannon_recipes["tungsten-ore"] = {name= "tungsten-ore"}
|
se_delivery_cannon_recipes["tungsten-ore"] = {name= "tungsten-ore"}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
local util = require("__bztungsten__.util");
|
local util = require("__bztungsten__.tungsten-util");
|
||||||
|
|
||||||
-- Lamps
|
-- Lamps
|
||||||
util.add_prerequisite("optics", "tungsten-processing")
|
util.add_prerequisite("optics", "tungsten-processing")
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
-- Lead smelting
|
-- Lead smelting
|
||||||
|
|
||||||
local util = require("__bztungsten__.util");
|
local util = require("__bztungsten__.tungsten-util");
|
||||||
|
|
||||||
data:extend({
|
data:extend({
|
||||||
{ type = "recipe-category", name = "smelting-carbon"},
|
{ type = "recipe-category", name = "smelting-carbon"},
|
||||||
|
|
|
||||||
|
|
@ -116,9 +116,7 @@ end
|
||||||
function replace_ingredient(recipe, old, new)
|
function replace_ingredient(recipe, old, new)
|
||||||
if recipe ~= nil and recipe.ingredients ~= nil then
|
if recipe ~= nil and recipe.ingredients ~= nil then
|
||||||
for i, ingredient in pairs(recipe.ingredients) do
|
for i, ingredient in pairs(recipe.ingredients) do
|
||||||
-- For final fixes
|
|
||||||
if ingredient.name == old then ingredient.name = new end
|
if ingredient.name == old then ingredient.name = new end
|
||||||
-- For updates
|
|
||||||
if ingredient[1] == old then ingredient[1] = new end
|
if ingredient[1] == old then ingredient[1] = new end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Loading…
Add table
Add a link
Reference in a new issue