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")
|
local util = require("util")
|
||||||
if mods.Krastorio2 then
|
if mods.Krastorio2 then
|
||||||
if bzutil.me.use_fullerenes() 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 util.me.use_flake_graphite() and mods["Rich-Rocks-Requiem"] then
|
||||||
if data.raw.recipe["rrr-stone-processing"] then
|
if data.raw.recipe["rrr-stone-processing"] then
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
local futil = require("util")
|
local futil = require("util")
|
||||||
local util = require("__bzcarbon__.data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
-- core mining balancing
|
-- core mining balancing
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
-- Deadlock stacking recipes
|
-- Deadlock stacking recipes
|
||||||
|
|
||||||
local util = require("__bzcarbon__.data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
if deadlock then
|
if deadlock then
|
||||||
deadlock.add_stack("flake-graphite", "__bzcarbon__/graphics/icons/stacked/flake-graphite-stacked.png", "deadlock-stacking-1", 64)
|
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
|
if mods.Krastorio2 then
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
-- Enable prod modules for all recipes
|
-- Enable prod modules for all recipes
|
||||||
local util = require("__bzcarbon__.data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
recipes = {
|
recipes = {
|
||||||
"graphite",
|
"graphite",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
local util = require("__bzcarbon__.data-util");
|
local util = require("data-util");
|
||||||
if mods["space-exploration"] then
|
if mods["space-exploration"] then
|
||||||
|
|
||||||
if util.me.use_rough_diamond() then
|
if util.me.use_rough_diamond() then
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
local util = require("__bzcarbon__.data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
-- TECHS
|
-- TECHS
|
||||||
util.add_prerequisite("steel-processing", "graphite-processing")
|
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"
|
local graphite_category = "advanced-crafting"
|
||||||
if mods["space-exploration"] then
|
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
|
Version: 0.3.10
|
||||||
Date: 2022-08-06
|
Date: 2022-08-06
|
||||||
Fixes:
|
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.remove_ingredient("fu_carbon_fiber_recipe", "fi_crushed_coal_item")
|
||||||
util.add_ingredient("fu_carbon_fiber_recipe", "graphite", 3)
|
util.add_ingredient("fu_carbon_fiber_recipe", "graphite", 3)
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,27 @@ else
|
||||||
util.titanium_processing = "titanium-processing"
|
util.titanium_processing = "titanium-processing"
|
||||||
end
|
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)
|
function util.fe_plus(sub)
|
||||||
if mods["FactorioExtended-Plus-"..sub] then
|
if mods["FactorioExtended-Plus-"..sub] then
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
local resource_autoplace = require('resource-autoplace');
|
local resource_autoplace = require('resource-autoplace');
|
||||||
local noise = require('noise');
|
local noise = require('noise');
|
||||||
|
|
||||||
local util = require("__bzcarbon__.data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
if util.me.use_rough_diamond() then
|
if util.me.use_rough_diamond() then
|
||||||
data:extend({
|
data:extend({
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
local resource_autoplace = require('resource-autoplace');
|
local resource_autoplace = require('resource-autoplace');
|
||||||
local noise = require('noise');
|
local noise = require('noise');
|
||||||
|
|
||||||
local util = require("__bzcarbon__.data-util");
|
local util = require("data-util");
|
||||||
|
|
||||||
if util.me.use_flake_graphite() then
|
if util.me.use_flake_graphite() then
|
||||||
data:extend({
|
data:extend({
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "bzcarbon",
|
"name": "bzcarbon",
|
||||||
"version": "0.3.10",
|
"version": "0.3.11",
|
||||||
"factorio_version": "1.1",
|
"factorio_version": "1.1",
|
||||||
"title": "Graphite & Diamonds",
|
"title": "Graphite & Diamonds",
|
||||||
"author": "Brevven",
|
"author": "Brevven",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue