This commit is contained in:
Brevven 2021-06-14 23:49:49 -07:00
parent 67c568c4a1
commit 1663a51e7d
5 changed files with 19 additions and 5 deletions

View file

@ -1,4 +1,9 @@
---------------------------------------------------------------------------------------------------
Version: 0.1.4
Date: 2021-06-15
Features:
- FE+ compatibility
---------------------------------------------------------------------------------------------------
Version: 0.1.3
Date: 2021-06-15
Fixes:

View file

@ -1,6 +1,6 @@
{
"name": "bztungsten",
"version": "0.1.3",
"version": "0.1.4",
"factorio_version": "1.1",
"title": "Tungsten",
"author": "Brevven",

View file

@ -3,10 +3,6 @@ local noise = require('noise');
local util = require("__bztungsten__.tungsten-util");
if mods["FactorioExtended-Plus-Core"] then
util.remove_raw("item", "tungsten-ore")
end
data:extend({
{
type = "autoplace-control",

View file

@ -329,3 +329,9 @@ util.add_ingredient("advanced-oil-refinery-rampant-industry", "tungsten-carbide"
-- Endgame Combat
util.replace_ingredient("sulfur-bullet-magazine", "copper-plate", "tungsten-plate")
-- FE+
if util.fe_plus("Machines") then
util.add_ingredient("oil-refinery-mk2", "tungsten-carbide", 1)
end

View file

@ -8,6 +8,13 @@ if bobmods and bobmods.lib and bobmods.lib.recipe and bobmods.lib.tech then
util.tungsten_processing = "bz-tungsten-processing"
end
function util.fe_plus(sub)
if mods["FactorioExtended-Plus-"..sub] then
return true
end
end
function util.get_setting(name)
if settings.startup[name] == nil then
return nil