1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Item meta pointing range (#14347)

This commit is contained in:
cx384 2024-03-17 15:55:38 +01:00 committed by GitHub
parent e3b9828f24
commit 234b01a8c2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 38 additions and 10 deletions

View file

@ -31,6 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <optional>
struct ItemDefinition;
class IItemDefManager;
struct ToolGroupCap
{
@ -179,4 +180,5 @@ PunchDamageResult getPunchDamage(
);
u32 calculateResultWear(const u32 uses, const u16 initial_wear);
f32 getToolRange(const ItemDefinition &def_selected, const ItemDefinition &def_hand);
f32 getToolRange(const ItemStack &wielded_item, const ItemStack &hand_item,
const IItemDefManager *itemdef_manager);