From cb50ec10591c0e0e4b9915e642bc50d3d8d1fd0a Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Sat, 2 Nov 2024 21:27:47 +0000 Subject: Apply new clang-formatting --- src/Items/ItemPickaxe.h | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'src/Items/ItemPickaxe.h') 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; } - -} ; +}; -- cgit v1.2.3