This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
15 lines
421 B
C++
15 lines
421 B
C++
#pragma once
|
|
|
|
#include "Enchantment.h"
|
|
|
|
class DigDurabilityEnchantment : public Enchantment
|
|
{
|
|
public:
|
|
DigDurabilityEnchantment(int id, int frequency);
|
|
|
|
virtual int getMinCost(int level);
|
|
virtual int getMaxCost(int level);
|
|
virtual int getMaxLevel();
|
|
virtual bool canEnchant(std::shared_ptr<ItemInstance> item);
|
|
static bool shouldIgnoreDurabilityDrop(std::shared_ptr<ItemInstance> item, int level, Random *random);
|
|
}; |