Свернуть ↑
Index: AE-go_GameServer/config/main/custom.properties
================================================== =================
--- AE-go_GameServer/config/main/custom.properties (revision 2116)
+++ AE-go_GameServer/config/main/custom.properties (working copy)
@@ -71,5 +71,10 @@
gameserver.manastone.percent4 = 19
gameserver.manastone.percent5 = 2
+#Default Enchant Rates
+#Default:
+gameserver.enchant.basepercent = 50
+gameserver.enchant.maxpercent = 95
+
# Disable chat server connection
gameserver.disable.chatserver = true
\ No newline at end of file
Index: AE-go_GameServer/src/com/aionemu/gameserver/services/EnchantService.java
================================================== =================
--- AE-go_GameServer/src/com/aionemu/gameserver/services/EnchantService.java (revision 2116)
+++ AE-go_GameServer/src/com/aionemu/gameserver/services/EnchantService.java (working copy)
@@ -142,7 +142,7 @@
break;
}
- int success = 50;
+ int success = CustomConfig.ENCBASEPERCENT;;
int levelDiff = enchantStoneLevel - targetItemLevel;
@@ -151,10 +151,13 @@
{
success += extraSuccess * 5;
}
-
- if(success >= 95)
- success = 95;
-
+
+ if(success >= CustomConfig.ENCMAXPERCENT)
+ success = CustomConfig.ENCMAXPERCENT;
+
+ if (success > 100)
+ success = 100;
+
boolean result = false;
if(Rnd.get(0, 100) < success)
Index: AE-go_GameServer/src/com/aionemu/gameserver/configs/main/CustomConfig.java
================================================== =================
--- AE-go_GameServer/src/com/aionemu/gameserver/configs/main/CustomConfig.java (revision 2116)
+++ AE-go_GameServer/src/com/aionemu/gameserver/configs/main/CustomConfig.java (working copy)
@@ -84,6 +84,14 @@
public static int MSPERCENT5;
/**
+ * Enchant Rates
+ */
+ @Property(key = "gameserver.enchant.basepercent", defaultValue = "50")
+ public static int ENCBASEPERCENT;
+ @Property(key = "gameserver.enchant.maxpercent", defaultValue = "95")
+ public static int ENCMAXPERCENT;
+
+ /**
* Disable chat server connection
*/
@Property(key = "gameserver.disable.chatserver", defaultValue = "true")