Add +4 as a possible enchantment

This commit is contained in:
2024-08-31 14:20:07 -04:00
committed by Celtic Minstrel
parent 4df389db6d
commit 4702d19122
5 changed files with 6 additions and 3 deletions

View File

@@ -25,13 +25,14 @@ enum class eEnchant {
FLAMING,
PLUS_FIVE,
BLESSED,
PLUS_FOUR,
};
class cEnchant {
static std::map<eEnchant, cEnchant> dictionary;
friend const cEnchant& operator* (eEnchant ench);
public:
static const int MAX = int(eEnchant::BLESSED);
static const int MAX = int(eEnchant::PLUS_FOUR);
cEnchant(eEnchant id, std::string suf);
cEnchant& withCost(short cost);
cEnchant& withBonus(int bonus);