From 435c8a4bad0f1e1787c8ec57a9041a6432dff9c2 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Sat, 13 Jan 2024 16:42:11 -0800 Subject: [PATCH] Add cell based drawer upgrades. --- modules/storage/drawer-interop.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/storage/drawer-interop.lua b/modules/storage/drawer-interop.lua index 59d8b76..a6ff48b 100644 --- a/modules/storage/drawer-interop.lua +++ b/modules/storage/drawer-interop.lua @@ -1,6 +1,10 @@ -- Interoperability file for drawers support. local me = microexpansion +local S = function(d) + return d +end + me.register_inventory("drawers:wood1", function(net, ctrl_inv, int_meta, n, pos, doinventories) if not doinventories then return end local c = drawers.drawer_get_content(n.pos, "") @@ -37,3 +41,10 @@ end) me.register_inventory("drawers:controller", function(net, ctrl_inv, int_meta, n, pos) -- inv:add_item("src", ItemStack("default:stone")) end) + +drawers.register_drawer_upgrade("microexpansion:upgrade_me64k", { + description = S("Microexpansion Drawer Upgrade (x64*4)"), + inventory_image = "drawers_upgrade_mithril.png", + groups = {drawer_upgrade = 8000}, + recipe_item = "microexpansion:cell_64k" +})