From 88dc8c694ed0e182b4d5ace4fcd94a0a82946c31 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 12 Sep 2011 20:10:17 +0200 Subject: Added Iron Apple which heals 4 Hearts --- src/content_craft.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/content_craft.cpp') diff --git a/src/content_craft.cpp b/src/content_craft.cpp index 20ab5f069..8e8b17a9b 100644 --- a/src/content_craft.cpp +++ b/src/content_craft.cpp @@ -428,6 +428,20 @@ InventoryItem *craft_get_result(InventoryItem **items) return new MaterialItem(CONTENT_LADDER, 1); } } + + // Iron Apple + { + ItemSpec specs[9]; + specs[1] = ItemSpec(ITEM_CRAFT, "steel_ingot"); + specs[3] = ItemSpec(ITEM_CRAFT, "steel_ingot"); + specs[4] = ItemSpec(ITEM_CRAFT, "apple"); + specs[5] = ItemSpec(ITEM_CRAFT, "steel_ingot"); + specs[7] = ItemSpec(ITEM_CRAFT, "steel_ingot"); + if(checkItemCombination(items, specs)) + { + return new CraftItem("apple_iron", 1); + } + } return NULL; } -- cgit v1.2.3