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:
parent
ace005bf7c
commit
440e9cdbef
5 changed files with 137 additions and 75 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue