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:
parent
e3b9828f24
commit
234b01a8c2
8 changed files with 38 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue