mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add helper functions to make tool usable n times (#12047)
This commit is contained in:
parent
6d163b72dc
commit
6a6b579c54
7 changed files with 60 additions and 3 deletions
|
@ -183,7 +183,7 @@ void ToolCapabilities::deserializeJson(std::istream &is)
|
|||
}
|
||||
}
|
||||
|
||||
static u32 calculateResultWear(const u32 uses, const u16 initial_wear)
|
||||
u32 calculateResultWear(const u32 uses, const u16 initial_wear)
|
||||
{
|
||||
if (uses == 0) {
|
||||
// Trivial case: Infinite uses
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue