summaryrefslogtreecommitdiff
path: root/src/tool.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-29 13:35:20 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-03-29 13:35:20 +0300
commit440e9cdbef19d154f134a85c7e2601f0aff63459 (patch)
treee139e83c88d67c5847b1675ab5cb2f5f900161af /src/tool.h
parentace005bf7cd9687a49b1813bc091240660d21963 (diff)
downloadminetest-440e9cdbef19d154f134a85c7e2601f0aff63459.tar.gz
minetest-440e9cdbef19d154f134a85c7e2601f0aff63459.tar.bz2
minetest-440e9cdbef19d154f134a85c7e2601f0aff63459.zip
Rework tool_capabilities a bit (maxwear->uses, scale dig time according to leveldiff)
Diffstat (limited to 'src/tool.h')
-rw-r--r--src/tool.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tool.h b/src/tool.h
index a92a77294..32f1962d0 100644
--- a/src/tool.h
+++ b/src/tool.h
@@ -29,12 +29,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
struct ToolGroupCap
{
std::map<int, float> times;
- float maxwear;
int maxlevel;
+ int uses;
ToolGroupCap():
- maxwear(0.05),
- maxlevel(1)
+ maxlevel(1),
+ uses(20)
{}
bool getTime(int rating, float *time) const