made more things burnable in furnace
authorPerttu Ahola <celeron55@gmail.com>
Sat, 30 Jul 2011 11:57:43 +0000 (14:57 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 30 Jul 2011 11:57:43 +0000 (14:57 +0300)
src/content_nodemeta.cpp

index 681e2b92584365e827fd39c62a2948cc8e54a86d..6b8bf05ef549cc230bfd094fd4934c831786c5b2 100644 (file)
@@ -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;