summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemPickaxe.h
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
committerAlexander Harkness <me@bearbin.net>2024-11-02 22:27:47 +0100
commitcb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a (patch)
treef647b20e1823f1846af88e832cf82a4a02e96e69 /src/Items/ItemPickaxe.h
parentImprove clang-format config file, remove automatically enforced code style from contrib guide. (diff)
downloadcuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.gz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.bz2
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.lz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.xz
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.tar.zst
cuberite-cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a.zip
Diffstat (limited to '')
-rw-r--r--src/Items/ItemPickaxe.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/Items/ItemPickaxe.h b/src/Items/ItemPickaxe.h
index 3c38e372f..42576f632 100644
--- a/src/Items/ItemPickaxe.h
+++ b/src/Items/ItemPickaxe.h
@@ -5,17 +5,14 @@
-class cItemPickaxeHandler final:
- public cItemHandler
+class cItemPickaxeHandler final : public cItemHandler
{
using Super = cItemHandler;
-public:
-
- constexpr cItemPickaxeHandler(int a_ItemType):
+ public:
+ constexpr cItemPickaxeHandler(int a_ItemType) :
Super(a_ItemType)
{
-
}
@@ -24,9 +21,9 @@ public:
{
switch (a_Action)
{
- case dlaAttackEntity: return 2;
- case dlaBreakBlock: return 1;
- case dlaBreakBlockInstant: return 0;
+ case dlaAttackEntity: return 2;
+ case dlaBreakBlock: return 1;
+ case dlaBreakBlockInstant: return 0;
}
UNREACHABLE("Unsupported durability loss action");
}
@@ -43,7 +40,7 @@ public:
case E_ITEM_IRON_PICKAXE: return 3;
case E_ITEM_DIAMOND_PICKAXE: return 4;
- default: return 0;
+ default: return 0;
}
}
@@ -189,5 +186,4 @@ public:
ASSERT(!"Something is wrong here... Maybe they are pickaxes out of a new material?");
return 1.0f;
}
-
-} ;
+};