aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-07-30 14:57:43 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-07-30 14:57:43 +0300
commit8ceb0586b29d66ad0b4c073420590625a4b63769 (patch)
treeb7a1e4b5ded650ab78b996b54a1cbb862e54f2ce
parentdf27b854325c1fe96b7bc9f8a1cc227b55896f57 (diff)
downloadminetest-8ceb0586b29d66ad0b4c073420590625a4b63769.tar.gz
minetest-8ceb0586b29d66ad0b4c073420590625a4b63769.tar.bz2
minetest-8ceb0586b29d66ad0b4c073420590625a4b63769.zip
made more things burnable in furnace
-rw-r--r--src/content_nodemeta.cpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/content_nodemeta.cpp b/src/content_nodemeta.cpp
index 681e2b925..6b8bf05ef 100644
--- a/src/content_nodemeta.cpp
+++ b/src/content_nodemeta.cpp
@@ -277,6 +277,20 @@ bool FurnaceNodeMetadata::step(float dtime)
fuel_list->decrementMaterials(1);
changed = true;
}
+ else if(ItemSpec(ITEM_MATERIAL, CONTENT_JUNGLETREE).checkItem(fuel_item))
+ {
+ m_fuel_totaltime = 30;
+ m_fuel_time = 0;
+ fuel_list->decrementMaterials(1);
+ changed = true;
+ }
+ else if(ItemSpec(ITEM_MATERIAL, CONTENT_FENCE).checkItem(fuel_item))
+ {
+ m_fuel_totaltime = 30/2;
+ m_fuel_time = 0;
+ fuel_list->decrementMaterials(1);
+ changed = true;
+ }
else if(ItemSpec(ITEM_MATERIAL, CONTENT_WOOD).checkItem(fuel_item))
{
m_fuel_totaltime = 30/4;
@@ -284,6 +298,41 @@ bool FurnaceNodeMetadata::step(float dtime)
fuel_list->decrementMaterials(1);
changed = true;
}
+ else if(ItemSpec(ITEM_MATERIAL, CONTENT_BOOKSHELF).checkItem(fuel_item))
+ {
+ m_fuel_totaltime = 30/4;
+ m_fuel_time = 0;
+ fuel_list->decrementMaterials(1);
+ changed = true;
+ }
+ else if(ItemSpec(ITEM_MATERIAL, CONTENT_LEAVES).checkItem(fuel_item))
+ {
+ m_fuel_totaltime = 30/16;
+ m_fuel_time = 0;
+ fuel_list->decrementMaterials(1);
+ changed = true;
+ }
+ else if(ItemSpec(ITEM_MATERIAL, CONTENT_PAPYRUS).checkItem(fuel_item))
+ {
+ m_fuel_totaltime = 30/32;
+ m_fuel_time = 0;
+ fuel_list->decrementMaterials(1);
+ changed = true;
+ }
+ else if(ItemSpec(ITEM_MATERIAL, CONTENT_JUNGLEGRASS).checkItem(fuel_item))
+ {
+ m_fuel_totaltime = 30/32;
+ m_fuel_time = 0;
+ fuel_list->decrementMaterials(1);
+ changed = true;
+ }
+ else if(ItemSpec(ITEM_MATERIAL, CONTENT_CACTUS).checkItem(fuel_item))
+ {
+ m_fuel_totaltime = 30/4;
+ m_fuel_time = 0;
+ fuel_list->decrementMaterials(1);
+ changed = true;
+ }
else if(ItemSpec(ITEM_CRAFT, "Stick").checkItem(fuel_item))
{
m_fuel_totaltime = 30/4/4;