fixes, refactor
This commit is contained in:
parent
d4a8b748f4
commit
dd5770a2e6
11 changed files with 117 additions and 62 deletions
|
|
@ -1,7 +1,6 @@
|
|||
local util = require("data-util")
|
||||
|
||||
|
||||
if util.carbon() == "coke" and not data.raw.item["coke"] then
|
||||
if util.me.carbon() == "coke" and not data.raw.item["coke"] then
|
||||
data:extend({
|
||||
{
|
||||
type = "item",
|
||||
|
|
@ -32,7 +31,7 @@ data:extend({
|
|||
enabled=false,
|
||||
},
|
||||
})
|
||||
elseif util.carbon() == "solid-fuel" then
|
||||
elseif util.me.carbon() == "solid-fuel" then
|
||||
data:extend({
|
||||
{
|
||||
type = "recipe",
|
||||
|
|
|
|||
|
|
@ -26,8 +26,9 @@ data:extend({
|
|||
},
|
||||
collision_box = {{-1.7, -1.7}, {1.7, 1.7}},
|
||||
selection_box = {{-2, -2}, {2, 2}},
|
||||
crafting_categories = {"founding", futil.smelt() and "smelting" or nil},
|
||||
energy_usage = "90kW",
|
||||
crafting_categories = {"founding", futil.me.smelt() and "smelting" or nil},
|
||||
energy_usage = "360kW",
|
||||
drain = "12kW",
|
||||
crafting_speed = 4,
|
||||
energy_source =
|
||||
{
|
||||
|
|
|
|||
|
|
@ -26,8 +26,8 @@ data:extend({
|
|||
},
|
||||
collision_box = {{-1.7, -1.7}, {1.7, 1.7}},
|
||||
selection_box = {{-2, -2}, {2, 2}},
|
||||
crafting_categories = {"founding", futil.smelt() and "smelting" or nil},
|
||||
energy_usage = "90kW",
|
||||
crafting_categories = {"founding", futil.me.smelt() and "smelting" or nil},
|
||||
energy_usage = "180kW",
|
||||
crafting_speed = 4,
|
||||
energy_source =
|
||||
{
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ data:extend({
|
|||
prerequisites = {"automation"},
|
||||
effects = {
|
||||
{type = "unlock-recipe", recipe = "foundry"},
|
||||
util.carbonrecipe() and {type = "unlock-recipe", recipe = util.carbonrecipe()},
|
||||
util.me.carbonrecipe() and {type = "unlock-recipe", recipe = util.me.carbonrecipe()},
|
||||
},
|
||||
unit = {
|
||||
count = 25,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue