Add +4 as a possible enchantment
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
<xs:enumeration value="+1"/>
|
||||
<xs:enumeration value="+2"/>
|
||||
<xs:enumeration value="+3"/>
|
||||
<xs:enumeration value="+4"/>
|
||||
<xs:enumeration value="+5"/>
|
||||
<xs:enumeration value="shoot-flame"/>
|
||||
<xs:enumeration value="flaming"/>
|
||||
|
@@ -74,3 +74,4 @@ cEnchant E_SHOOT_FLAME = cEnchant(eEnchant::SHOOT_FLAME, "F").withCost(8).withAb
|
||||
cEnchant E_FLAMING = cEnchant(eEnchant::FLAMING, "F!").withCost(15).withAbility(eItemAbil::DAMAGING_WEAPON, 5, eDamageType::FIRE).finish();
|
||||
cEnchant E_PLUS_FIVE = cEnchant(eEnchant::PLUS_FIVE, "+5").withCost(15).withBonus(5).finish();
|
||||
cEnchant E_BLESSED = cEnchant(eEnchant::BLESSED, "B").withCost(10).withBonus(1).withAbility(eItemAbil::AFFECT_STATUS, 5, eStatus::BLESS_CURSE);
|
||||
cEnchant E_PLUS_FOUR = cEnchant(eEnchant::PLUS_FOUR, "+5").withCost(15).withBonus(4).finish();
|
||||
|
@@ -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);
|
||||
|
@@ -746,7 +746,7 @@ std::istream& operator>> (std::istream& in, eCreatureStatus& status) {
|
||||
|
||||
// MARK: eEnchant
|
||||
|
||||
cEnumLookup enchant_strs = {"+1", "+2", "+3", "shoot-flame", "flaming", "+5", "blessed"};
|
||||
cEnumLookup enchant_strs = {"+1", "+2", "+3", "shoot-flame", "flaming", "+5", "blessed", "+4"};
|
||||
|
||||
std::ostream& operator<< (std::ostream& out, eEnchant ench) {
|
||||
writeEnum(out, ench, enchant_strs, "+1");
|
||||
|
@@ -421,7 +421,7 @@ short choose_text(eStrType list, unsigned short cur_choice, cDialog* parent, std
|
||||
}
|
||||
break;
|
||||
case STRT_ENCHANT:
|
||||
strings = {"+1", "+2", "+3", "Shoot Flames", "Flaming", "+5", "Blessed"};
|
||||
strings = {"+1", "+2", "+3", "Shoot Flames", "Flaming", "+5", "Blessed", "+4"};
|
||||
break;
|
||||
case STRT_DIR:
|
||||
strings = {"North", "Northease", "East", "Southeast", "South", "Southwest", "West", "Northwest", "None"};
|
||||
|
Reference in New Issue
Block a user