aboutsummaryrefslogtreecommitdiff
path: root/src/content_craft.cpp
diff options
context:
space:
mode:
authordarkrose <lisa@ltmnet.com>2011-09-22 19:11:48 +1000
committerdarkrose <lisa@ltmnet.com>2011-09-22 19:11:48 +1000
commit582e450bad08006dff141216351b81d3eb9270b7 (patch)
tree0c76a61f5e36f8e4414d220637ff90eacde4eb86 /src/content_craft.cpp
parentae6d83a41ed958b65ec7f6584d7b042ae6a6e51f (diff)
downloadminetest-582e450bad08006dff141216351b81d3eb9270b7.tar.gz
minetest-582e450bad08006dff141216351b81d3eb9270b7.tar.bz2
minetest-582e450bad08006dff141216351b81d3eb9270b7.zip
added locking chests - clean patch
Diffstat (limited to 'src/content_craft.cpp')
-rw-r--r--src/content_craft.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/content_craft.cpp b/src/content_craft.cpp
index 8e8b17a9b..866c1e532 100644
--- a/src/content_craft.cpp
+++ b/src/content_craft.cpp
@@ -297,6 +297,24 @@ InventoryItem *craft_get_result(InventoryItem **items)
}
}
+ // Locking Chest
+ {
+ ItemSpec specs[9];
+ specs[0] = ItemSpec(ITEM_MATERIAL, CONTENT_WOOD);
+ specs[1] = ItemSpec(ITEM_MATERIAL, CONTENT_WOOD);
+ specs[2] = ItemSpec(ITEM_MATERIAL, CONTENT_WOOD);
+ specs[3] = ItemSpec(ITEM_MATERIAL, CONTENT_WOOD);
+ specs[4] = ItemSpec(ITEM_CRAFT, "steel_ingot");
+ specs[5] = ItemSpec(ITEM_MATERIAL, CONTENT_WOOD);
+ specs[6] = ItemSpec(ITEM_MATERIAL, CONTENT_WOOD);
+ specs[7] = ItemSpec(ITEM_MATERIAL, CONTENT_WOOD);
+ specs[8] = ItemSpec(ITEM_MATERIAL, CONTENT_WOOD);
+ if(checkItemCombination(items, specs))
+ {
+ return new MaterialItem(CONTENT_LOCKABLE_CHEST, 1);
+ }
+ }
+
// Furnace
{
ItemSpec specs[9];