diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-29 13:35:20 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-29 13:35:20 +0300 |
commit | 440e9cdbef19d154f134a85c7e2601f0aff63459 (patch) | |
tree | e139e83c88d67c5847b1675ab5cb2f5f900161af /src/tool.h | |
parent | ace005bf7cd9687a49b1813bc091240660d21963 (diff) | |
download | minetest-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.h | 6 |
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 |