summaryrefslogtreecommitdiff
path: root/src/content_craft.cpp
diff options
context:
space:
mode:
authorNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-08-01 05:59:40 -0700
committerNils Dagsson Moskopp <nils@dieweltistgarnichtso.net>2011-08-01 05:59:40 -0700
commitf6bc6621946f019689e099a423e6bfc7bf7e2618 (patch)
treee5ce572a273a2d4fbfc13d8680f4eb470cb91a3d /src/content_craft.cpp
parent7ece67727dcc1ff7a6634e4b911eeb82ed3eaf45 (diff)
parent7bd9e53ae630feabe42ab48369913f93beac26a7 (diff)
downloadminetest-f6bc6621946f019689e099a423e6bfc7bf7e2618.tar.gz
minetest-f6bc6621946f019689e099a423e6bfc7bf7e2618.tar.bz2
minetest-f6bc6621946f019689e099a423e6bfc7bf7e2618.zip
Merge pull request #47 from MarkTraceur/master
More better ladders
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;
}