Zefram
2014-04-30 9b64ffea8c5268a4c4644c20d77a4e9c1ff4ba37
Register craft types with unified_inventory
8 files modified
55 ■■■■■ changed files
technic/locale/de.txt 5 ●●●●● patch | view | raw | blame | history
technic/locale/es.txt 5 ●●●●● patch | view | raw | blame | history
technic/locale/it.txt 6 ●●●●● patch | view | raw | blame | history
technic/locale/template.txt 5 ●●●●● patch | view | raw | blame | history
technic/machines/LV/compressor.lua 8 ●●●●● patch | view | raw | blame | history
technic/machines/LV/extractor.lua 8 ●●●●● patch | view | raw | blame | history
technic/machines/register/alloy_furnace.lua 10 ●●●●● patch | view | raw | blame | history
technic/machines/register/grinder_recipes.lua 8 ●●●●● patch | view | raw | blame | history
technic/locale/de.txt
@@ -178,3 +178,8 @@
Sonic Screwdriver = Schallschraubendreher
Tree Tap = Baumzapfhahn
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =
technic/locale/es.txt
@@ -168,3 +168,8 @@
Sonic Screwdriver = Destonillador Sonico
Tree Tap = Grifo de Arbol
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =
technic/locale/it.txt
@@ -165,3 +165,9 @@
Single node. = Nodo singolo.
Sonic Screwdriver = Cacciavite sonico
Tree Tap = Batti albero
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =
technic/locale/template.txt
@@ -178,3 +178,8 @@
Sonic Screwdriver =
Tree Tap =
## Craft descriptions
Alloy cooking =
Grinding =
Compressing =
Extracting =
technic/machines/LV/compressor.lua
@@ -3,6 +3,14 @@
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
technic/machines/LV/extractor.lua
@@ -3,6 +3,14 @@
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
technic/machines/register/alloy_furnace.lua
@@ -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 @@
            type = "alloy",
            output = result.." "..count3,
            items = {metal1.." "..count1, metal2.." "..count2},
            width = 2,
            width = 0,
        })
    end
end
technic/machines/register/grinder_recipes.lua
@@ -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)