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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock