Jump to content

Recommended Posts

Posted

Index: /trunk/lin2srv/java/config/Character.properties
===================================================================
--- /trunk/lin2srv/java/config/Character.properties (revision 746)
+++ /trunk/lin2srv/java/config/Character.properties (revision 843)
@@ -259,4 +259,5 @@
EnchantChanceArmor = 66
EnchantChanceJewelry = 66
+EnchantChanceElement = 50

# DEFAULT NEEDS TO BE VERIFIED, MUST BE CHANGED HERE AND IN CONFIG.JAVA IF NOT CORRECT
Index: /trunk/lin2srv/java/net/sf/l2j/gameserver/model/Elementals.java
===================================================================
--- /trunk/lin2srv/java/net/sf/l2j/gameserver/model/Elementals.java (revision 400)
+++ /trunk/lin2srv/java/net/sf/l2j/gameserver/model/Elementals.java (revision 843)
@@ -15,4 +15,5 @@
package net.sf.l2j.gameserver.model;

+import net.sf.l2j.Config;
import net.sf.l2j.gameserver.model.actor.L2Character;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
@@ -32,5 +33,5 @@
	public final static byte DARK = 5;

-	public final static int ENCHANT_CHANCE = 50;
+	public final static int ENCHANT_CHANCE = Config.ENCHANT_CHANCE_ELEMENT;

	public final static int FIRST_WEAPON_BONUS = 20;
Index: /trunk/lin2srv/java/net/sf/l2j/Config.java
===================================================================
--- /trunk/lin2srv/java/net/sf/l2j/Config.java (revision 834)
+++ /trunk/lin2srv/java/net/sf/l2j/Config.java (revision 843)
@@ -843,4 +843,5 @@
	public static int ENCHANT_CHANCE_ARMOR;
	public static int ENCHANT_CHANCE_JEWELRY;
+	public static int ENCHANT_CHANCE_ELEMENT;
	public static int BLESSED_ENCHANT_CHANCE_WEAPON;
	public static int BLESSED_ENCHANT_CHANCE_ARMOR;
@@ -1289,4 +1290,5 @@
					ENCHANT_CHANCE_ARMOR = Integer.parseInt(Character.getProperty("EnchantChanceArmor", "66"));
					ENCHANT_CHANCE_JEWELRY = Integer.parseInt(Character.getProperty("EnchantChanceJewelry", "66"));
+					ENCHANT_CHANCE_ELEMENT = Integer.parseInt(Character.getProperty("EnchantChanceElement", "50"));
					BLESSED_ENCHANT_CHANCE_WEAPON = Integer.parseInt(Character.getProperty("BlessedEnchantChanceWeapon", "66"));
					BLESSED_ENCHANT_CHANCE_ARMOR = Integer.parseInt(Character.getProperty("BlessedEnchantChanceArmor", "66"));
@@ -2494,4 +2496,5 @@
		else if (pName.equalsIgnoreCase("EnchantChanceArmor")) ENCHANT_CHANCE_ARMOR = Integer.parseInt(pValue);
		else if (pName.equalsIgnoreCase("EnchantChanceJewelry")) ENCHANT_CHANCE_JEWELRY = Integer.parseInt(pValue);
+		else if (pName.equalsIgnoreCase("EnchantChanceElement")) ENCHANT_CHANCE_ELEMENT = Integer.parseInt(pValue);
		else if (pName.equalsIgnoreCase("EnchantMaxWeapon")) ENCHANT_MAX_WEAPON = Integer.parseInt(pValue);
		else if (pName.equalsIgnoreCase("EnchantMaxArmor")) ENCHANT_MAX_ARMOR = Integer.parseInt(pValue);


 

L2jOfficial

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...