aboutsummaryrefslogtreecommitdiff
path: root/src/tool.h
diff options
context:
space:
mode:
authorWuzzy <Wuzzy@disroot.org>2022-06-03 19:47:04 +0000
committerGitHub <noreply@github.com>2022-06-03 21:47:04 +0200
commit6a6b579c5472065dd4ba8edcebe120b4b1c9198e (patch)
treef9cd6f5fd653e9ad394be96ab0ccac7ba82fb26a /src/tool.h
parent6d163b72dc777c6dfc62175c7af231cd62e5c2c7 (diff)
downloadminetest-6a6b579c5472065dd4ba8edcebe120b4b1c9198e.tar.gz
minetest-6a6b579c5472065dd4ba8edcebe120b4b1c9198e.tar.bz2
minetest-6a6b579c5472065dd4ba8edcebe120b4b1c9198e.zip
Add helper functions to make tool usable n times (#12047)
Diffstat (limited to 'src/tool.h')
-rw-r--r--src/tool.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool.h b/src/tool.h
index 8409f59af..c2444a834 100644
--- a/src/tool.h
+++ b/src/tool.h
@@ -142,4 +142,5 @@ PunchDamageResult getPunchDamage(
u16 initial_wear = 0
);
+u32 calculateResultWear(const u32 uses, const u16 initial_wear);
f32 getToolRange(const ItemDefinition &def_selected, const ItemDefinition &def_hand);