summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemPickaxe.h
diff options
context:
space:
mode:
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;
}
-
-} ;
+};