Changed calculations for max enchant values.

This commit is contained in:
MobiusDevelopment 2023-01-31 06:34:03 +02:00
parent 6bed83619b
commit 3c48b071f0
29 changed files with 406 additions and 348 deletions

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -62,9 +62,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -111,27 +111,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -179,6 +176,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -62,9 +62,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -111,27 +111,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -179,6 +176,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -62,9 +62,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -111,27 +111,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -179,6 +176,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)

View File

@ -64,9 +64,9 @@ public class EnchantItemGroupsData implements IXmlReader
if (Config.OVER_ENCHANT_PROTECTION)
{
LOGGER.info(getClass().getSimpleName() + ": Maximum weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Maximum accessory enchant is set to " + _maxAccessoryEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max weapon enchant is set to " + _maxWeaponEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max armor enchant is set to " + _maxArmorEnchant + ".");
LOGGER.info(getClass().getSimpleName() + ": Max accessory enchant is set to " + _maxAccessoryEnchant + ".");
}
}
@ -113,27 +113,24 @@ public class EnchantItemGroupsData implements IXmlReader
// Try to get a generic max value.
if (chance > 0)
{
if (name.endsWith("WEAPON_GROUP"))
if (name.contains("WEAPON"))
{
if (_maxWeaponEnchant < max)
{
_maxWeaponEnchant = max;
}
}
else if (name.endsWith("ARMOR_GROUP"))
{
if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
else if (name.contains("ACCESSORIES"))
else if (name.contains("ACCESSORIES") || name.contains("RING") || name.contains("EARRING") || name.contains("NECK"))
{
if (_maxAccessoryEnchant < max)
{
_maxAccessoryEnchant = max;
}
}
else if (_maxArmorEnchant < max)
{
_maxArmorEnchant = max;
}
}
}
}
@ -181,6 +178,11 @@ public class EnchantItemGroupsData implements IXmlReader
{
_maxAccessoryEnchant = _maxArmorEnchant;
}
// Max enchant values are set to current max enchant + 1.
_maxWeaponEnchant += 1;
_maxArmorEnchant += 1;
_maxAccessoryEnchant += 1;
}
public EnchantItemGroup getItemGroup(ItemTemplate item, int scrollGroup)