data util once
This commit is contained in:
parent
bc59ca8d96
commit
9955fe7626
15 changed files with 39 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
local bzutil = require("__bzcarbon__.data-util");
|
||||
local bzutil = require("data-util");
|
||||
local util = require("util")
|
||||
if mods.Krastorio2 then
|
||||
if bzutil.me.use_fullerenes() then
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
|
||||
if util.me.use_flake_graphite() and mods["Rich-Rocks-Requiem"] then
|
||||
if data.raw.recipe["rrr-stone-processing"] then
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
local futil = require("util")
|
||||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
|
||||
if mods["space-exploration"] then
|
||||
-- core mining balancing
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
-- Deadlock stacking recipes
|
||||
|
||||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
|
||||
if deadlock then
|
||||
deadlock.add_stack("flake-graphite", "__bzcarbon__/graphics/icons/stacked/flake-graphite-stacked.png", "deadlock-stacking-1", 64)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
|
||||
if mods.Krastorio2 then
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
-- Enable prod modules for all recipes
|
||||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
|
||||
recipes = {
|
||||
"graphite",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
if mods["space-exploration"] then
|
||||
|
||||
if util.me.use_rough_diamond() then
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
|
||||
-- TECHS
|
||||
util.add_prerequisite("steel-processing", "graphite-processing")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
|
||||
local graphite_category = "advanced-crafting"
|
||||
if mods["space-exploration"] then
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.11
|
||||
Date: 2022-08-07
|
||||
Changes:
|
||||
- Very minor lua optimization
|
||||
---------------------------------------------------------------------------------------------------
|
||||
Version: 0.3.10
|
||||
Date: 2022-08-06
|
||||
Fixes:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
|
||||
util.remove_ingredient("fu_carbon_fiber_recipe", "fi_crushed_coal_item")
|
||||
util.add_ingredient("fu_carbon_fiber_recipe", "graphite", 3)
|
||||
|
|
|
|||
|
|
@ -23,6 +23,27 @@ else
|
|||
util.titanium_processing = "titanium-processing"
|
||||
end
|
||||
|
||||
allbypass = {}
|
||||
log("BZZ" .. me.name)
|
||||
-- if get_setting("bz-recipe-bypass") then
|
||||
-- for recipe in string.gmatch(me.get_setting("bz-recipe-bypass"), '[^",%s]+') do
|
||||
-- allbypass[recipe] = true
|
||||
-- end
|
||||
-- end
|
||||
|
||||
function get_setting(name)
|
||||
if settings.startup[name] == nil then
|
||||
return nil
|
||||
end
|
||||
return settings.startup[name].value
|
||||
end
|
||||
|
||||
function bypass(recipe_name)
|
||||
if me.bypass[recipe_name] then return true end
|
||||
if allbypass[recipe_name] then return true end
|
||||
if get_setting("bz-tabula-rasa") then return true end
|
||||
end
|
||||
|
||||
function util.fe_plus(sub)
|
||||
if mods["FactorioExtended-Plus-"..sub] then
|
||||
return true
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
local resource_autoplace = require('resource-autoplace');
|
||||
local noise = require('noise');
|
||||
|
||||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
|
||||
if util.me.use_rough_diamond() then
|
||||
data:extend({
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
local resource_autoplace = require('resource-autoplace');
|
||||
local noise = require('noise');
|
||||
|
||||
local util = require("__bzcarbon__.data-util");
|
||||
local util = require("data-util");
|
||||
|
||||
if util.me.use_flake_graphite() then
|
||||
data:extend({
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bzcarbon",
|
||||
"version": "0.3.10",
|
||||
"version": "0.3.11",
|
||||
"factorio_version": "1.1",
|
||||
"title": "Graphite & Diamonds",
|
||||
"author": "Brevven",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue