1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-02 16:38:41 +00:00

Rework tool_capabilities a bit (maxwear->uses, scale dig time according to leveldiff)

This commit is contained in:
Perttu Ahola 2012-03-29 13:35:20 +03:00
parent ace005bf7c
commit 440e9cdbef
5 changed files with 137 additions and 75 deletions

View file

@ -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