Register craft types with unified_inventory

This commit is contained in:
Zefram 2014-04-30 00:19:17 +01:00
parent c9bf799e32
commit 9b64ffea8c
8 changed files with 54 additions and 1 deletions

View File

@ -178,3 +178,8 @@ Single node. = Einzelblock
Sonic Screwdriver = Schallschraubendreher
Tree Tap = Baumzapfhahn
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =

View File

@ -168,3 +168,8 @@ Single node. = Nodo simple.
Sonic Screwdriver = Destonillador Sonico
Tree Tap = Grifo de Arbol
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =

View File

@ -165,3 +165,9 @@ Mining Laser Mk%d = Laser da miniera mk%d
Single node. = Nodo singolo.
Sonic Screwdriver = Cacciavite sonico
Tree Tap = Batti albero
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =

View File

@ -178,3 +178,8 @@ Single node. =
Sonic Screwdriver =
Tree Tap =
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =

View File

@ -3,6 +3,14 @@ technic.compressor_recipes = {}
local S = technic.getter
if unified_inventory.register_craft_type then
unified_inventory.register_craft_type("compressing", {
description = S("Compressing"),
height = 1,
width = 1,
})
end
technic.register_compressor_recipe = function(src, src_count, dst, dst_count)
technic.compressor_recipes[src] = {src_count = src_count, dst_name = dst, dst_count = dst_count}
if unified_inventory then

View File

@ -3,6 +3,14 @@ technic.extractor_recipes ={}
local S = technic.getter
if unified_inventory.register_craft_type then
unified_inventory.register_craft_type("extracting", {
description = S("Extracting"),
height = 1,
width = 1,
})
end
technic.register_extractor_recipe = function(src, src_count, dst, dst_count)
technic.extractor_recipes[src] = {src_count = src_count, dst_name = dst, dst_count = dst_count}
if unified_inventory then

View File

@ -1,6 +1,14 @@
local S = technic.getter
if unified_inventory.register_craft_type then
unified_inventory.register_craft_type("alloy", {
description = S("Alloy cooking"),
height = 2,
width = 1,
})
end
-- Register alloy recipes
technic.alloy_recipes = {}
@ -32,7 +40,7 @@ technic.register_alloy_recipe = function(metal1, count1, metal2, count2, result,
type = "alloy",
output = result.." "..count3,
items = {metal1.." "..count1, metal2.." "..count2},
width = 2,
width = 0,
})
end
end

View File

@ -1,6 +1,14 @@
local S = technic.getter
if unified_inventory.register_craft_type then
unified_inventory.register_craft_type("grinding", {
description = S("Grinding"),
height = 1,
width = 1,
})
end
technic.grinder_recipes = {}
function technic.register_grinder_recipe(data)