mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Rework tool_capabilities a bit (maxwear->uses, scale dig time according to leveldiff)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user