Tune the tool speed thing
authorPerttu Ahola <celeron55@gmail.com>
Sun, 13 Nov 2011 13:54:08 +0000 (15:54 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:41 +0000 (19:13 +0200)
src/content_mapnode.cpp
src/materials.cpp

index fb649afbd9d1926cc0d50310424f7d4003ec90bf..3bc0232e6ac33473c14a7c255751a75a4d708c91 100644 (file)
@@ -49,7 +49,7 @@ void setStoneLikeMaterialProperties(MaterialProperties &mprop, float toughness)
 void setDirtLikeMaterialProperties(MaterialProperties &mprop, float toughness)
 {
        mprop.diggability = DIGGABLE_NORMAL;
-       mprop.weight = toughness * 2.0;
+       mprop.weight = toughness * 1.2;
        mprop.crackiness = 0;
        mprop.crumbliness = 1.2;
        mprop.cuttability = -0.4;
@@ -68,9 +68,9 @@ void setWoodLikeMaterialProperties(MaterialProperties &mprop, float toughness)
 {
        mprop.diggability = DIGGABLE_NORMAL;
        mprop.weight = toughness * 1.0;
-       mprop.crackiness = 2.0;
+       mprop.crackiness = 0.75;
        mprop.crumbliness = -1.0;
-       mprop.cuttability = 2.0;
+       mprop.cuttability = 1.5;
 }
 
 void setLeavesLikeMaterialProperties(MaterialProperties &mprop, float toughness)
@@ -85,7 +85,7 @@ void setLeavesLikeMaterialProperties(MaterialProperties &mprop, float toughness)
 void setGlassLikeMaterialProperties(MaterialProperties &mprop, float toughness)
 {
        mprop.diggability = DIGGABLE_NORMAL;
-       mprop.weight = 0.5 * toughness;
+       mprop.weight = 0.1 * toughness;
        mprop.crackiness = 2.0;
        mprop.crumbliness = -1.0;
        mprop.cuttability = -1.0;
index 21ee36bf8b0ed4b57ed27295ff954e367ffcee08..a276914962f330c9a58f58eb4566026e5d2d0a13 100644 (file)
@@ -46,11 +46,11 @@ ToolProperties getToolProperties(const std::string &toolname)
                return ToolProperties(0, 0,0,0,0, 1337, 0,0,0,0);
        
        else if(toolname == "WShovel")
-               return ToolProperties(1.5, 0.5,2,-1.5,0.3, 50, 0,0,0,0);
+               return ToolProperties(2.0, 0.5,2,-1.5,0.3, 50, 0,0,0,0);
        else if(toolname == "STShovel")
-               return ToolProperties(1.0, 0.5,2,-1.5,0.1, 100, 0,0,0,0);
+               return ToolProperties(1.5, 0.5,2,-1.5,0.1, 100, 0,0,0,0);
        else if(toolname == "SteelShovel")
-               return ToolProperties(0.6, 0.5,2,-1.5,0.0, 300, 0,0,0,0);
+               return ToolProperties(1.0, 0.5,2,-1.5,0.0, 300, 0,0,0,0);
 
        // weight, crackiness, crumbleness, cuttability
        else if(toolname == "WAxe")
@@ -68,7 +68,7 @@ ToolProperties getToolProperties(const std::string &toolname)
                return ToolProperties(2.0, 3,0,1,-1, 300, 0,0,0,0);
 
        // Properties of hand
-       return ToolProperties(0.5, 1,0.4,-0.75,0, 50, 0,0,0,0);
+       return ToolProperties(0.5, 1,0,-1,0, 50, 0,0,0,0);
 }
 
 DiggingProperties getDiggingProperties(u16 material, const std::string &tool)