Max enchant warning message.
This commit is contained in:
parent
6b74b036a6
commit
bba142bba4
5
trunk/dist/game/config/Character.ini
vendored
5
trunk/dist/game/config/Character.ini
vendored
@ -352,6 +352,11 @@ EnchantChanceElementEnergy = 10
|
||||
# Default: 7816,7817,7818,7819,7820,7821,7822,7823,7824,7825,7826,7827,7828,7829,7830,7831,13293,13294,13296
|
||||
EnchantBlackList = 7816,7817,7818,7819,7820,7821,7822,7823,7824,7825,7826,7827,7828,7829,7830,7831,13293,13294,13296
|
||||
|
||||
# If enabled, enchanting over the maximum enchant limit will not be possible; instead, a warning message will be sent to the player.
|
||||
# You can set custom maxEnchant values at EnchantItemData.xml
|
||||
# Default: True
|
||||
DisableOverEnchanting = True
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Augmenting
|
||||
# ---------------------------------------------------------------------------
|
||||
|
@ -923,6 +923,7 @@ public final class Config
|
||||
public static double ENCHANT_CHANCE_ELEMENT_JEWEL;
|
||||
public static double ENCHANT_CHANCE_ELEMENT_ENERGY;
|
||||
public static int[] ENCHANT_BLACKLIST;
|
||||
public static boolean DISABLE_OVER_ENCHANTING;
|
||||
public static int AUGMENTATION_NG_SKILL_CHANCE;
|
||||
public static int AUGMENTATION_NG_GLOW_CHANCE;
|
||||
public static int AUGMENTATION_MID_SKILL_CHANCE;
|
||||
@ -1392,7 +1393,7 @@ public final class Config
|
||||
ENCHANT_BLACKLIST[i] = Integer.parseInt(notenchantable[i]);
|
||||
}
|
||||
Arrays.sort(ENCHANT_BLACKLIST);
|
||||
|
||||
DISABLE_OVER_ENCHANTING = Character.getBoolean("DisableOverEnchanting", true);
|
||||
AUGMENTATION_NG_SKILL_CHANCE = Character.getInt("AugmentationNGSkillChance", 15);
|
||||
AUGMENTATION_NG_GLOW_CHANCE = Character.getInt("AugmentationNGGlowChance", 0);
|
||||
AUGMENTATION_MID_SKILL_CHANCE = Character.getInt("AugmentationMidSkillChance", 30);
|
||||
|
@ -115,8 +115,8 @@ public final class RequestEnchantItem implements IClientIncomingPacket
|
||||
supportTemplate = EnchantItemData.getInstance().getSupportItem(support);
|
||||
}
|
||||
|
||||
// first validation check
|
||||
if (!scrollTemplate.isValid(item, supportTemplate))
|
||||
// first validation check - also over enchant check
|
||||
if (!scrollTemplate.isValid(item, supportTemplate) || (Config.DISABLE_OVER_ENCHANTING && (item.getEnchantLevel() == scrollTemplate.getMaxEnchantLevel())))
|
||||
{
|
||||
client.sendPacket(SystemMessageId.INAPPROPRIATE_ENCHANT_CONDITIONS);
|
||||
activeChar.removeRequest(request.getClass());
|
||||
|
Loading…
Reference in New Issue
Block a user