diff options
author | Mark Holmquist <marktraceur@gmail.com> | 2011-07-27 10:18:09 -0700 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-08-01 09:22:36 +0200 |
commit | bc2819cab2978c61b2ca1d7b68a5d1f223e8647a (patch) | |
tree | 6895505207c2146c8775f7c481f5e15eb63fbe25 /src/content_craft.cpp | |
parent | 7ece67727dcc1ff7a6634e4b911eeb82ed3eaf45 (diff) | |
download | minetest-bc2819cab2978c61b2ca1d7b68a5d1f223e8647a.tar.gz minetest-bc2819cab2978c61b2ca1d7b68a5d1f223e8647a.tar.bz2 minetest-bc2819cab2978c61b2ca1d7b68a5d1f223e8647a.zip |
Added ladders--they don't have any use yet, though
Diffstat (limited to 'src/content_craft.cpp')
-rw-r--r-- | src/content_craft.cpp | 16 |
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; } |