1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-14 00:55:20 +02: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
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);