summaryrefslogtreecommitdiff
path: root/src/content_craft.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-08-05 11:22:13 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-08-05 11:22:13 +0300
commit64a6da3e45838a6f764777728736dfa0f6678778 (patch)
tree570cfe68e9036f77ef10f6ca57c3ca489cbb393f /src/content_craft.cpp
parent5f8809e425ba814f102c4387b6bf0cf323bd96c5 (diff)
parentdd9909a574514f59eb527db682a4e8d85350ead9 (diff)
downloadminetest-64a6da3e45838a6f764777728736dfa0f6678778.tar.gz
minetest-64a6da3e45838a6f764777728736dfa0f6678778.tar.bz2
minetest-64a6da3e45838a6f764777728736dfa0f6678778.zip
merged delta and c55
Diffstat (limited to 'src/content_craft.cpp')
-rw-r--r--src/content_craft.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/content_craft.cpp b/src/content_craft.cpp
index b5a1dc776..481ea1a63 100644
--- a/src/content_craft.cpp
+++ b/src/content_craft.cpp
@@ -413,6 +413,22 @@ InventoryItem *craft_get_result(InventoryItem **items)
}
}
+ // Ladder
+ {
+ ItemSpec specs[9];
+ specs[0] = ItemSpec(ITEM_CRAFT, "Stick");
+ specs[2] = ItemSpec(ITEM_CRAFT, "Stick");
+ specs[3] = ItemSpec(ITEM_CRAFT, "Stick");
+ specs[4] = ItemSpec(ITEM_CRAFT, "Stick");
+ specs[5] = ItemSpec(ITEM_CRAFT, "Stick");
+ specs[6] = ItemSpec(ITEM_CRAFT, "Stick");
+ specs[8] = ItemSpec(ITEM_CRAFT, "Stick");
+ if(checkItemCombination(items, specs))
+ {
+ return new MaterialItem(CONTENT_LADDER, 1);
+ }
+ }
+
return NULL;
}