diff options
Diffstat (limited to 'src/Items/ItemAxe.h')
-rw-r--r-- | src/Items/ItemAxe.h | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/src/Items/ItemAxe.h b/src/Items/ItemAxe.h index 3cd82fb73..21c7a84be 100644 --- a/src/Items/ItemAxe.h +++ b/src/Items/ItemAxe.h @@ -8,13 +8,11 @@ -class cItemAxeHandler final : - public cItemHandler +class cItemAxeHandler final : public cItemHandler { using Super = cItemHandler; -public: - + public: using Super::Super; @@ -23,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"); } @@ -42,15 +40,14 @@ public: { switch (m_ItemType) { - case E_ITEM_WOODEN_AXE: return 2.0f; - case E_ITEM_STONE_AXE: return 4.0f; - case E_ITEM_IRON_AXE: return 6.0f; - case E_ITEM_GOLD_AXE: return 12.0f; + case E_ITEM_WOODEN_AXE: return 2.0f; + case E_ITEM_STONE_AXE: return 4.0f; + case E_ITEM_IRON_AXE: return 6.0f; + case E_ITEM_GOLD_AXE: return 12.0f; case E_ITEM_DIAMOND_AXE: return 8.0f; } } ASSERT(!"Something is wrong here... Maybe they are axes out of a new material?"); return 1.0f; } - -} ; +}; |