Changeset 5099


Ignore:
Timestamp:
Nov 29, 2011 4:41:34 AM (6 months ago)
Author:
UnAfraid
Message:

BETA: Config for default enchant rate

Location:
branches/unstable/L2J_Server_BETA
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/unstable/L2J_Server_BETA/dist/game/config/Character.properties

    r5087 r5099  
    366366# Enchanting 
    367367# --------------------------------------------------------------------------- 
     368# Base rate for scrolls of enchant 
     369# Default: 66.66 
     370EnchantChance = 66.66 
     371 
    368372# This controls the chance an item has to break if it is enchanted. 
    369373# This chance is in %, so if you set this to 100%, enchants will always succeed. 
  • branches/unstable/L2J_Server_BETA/java/com/l2jserver/Config.java

    r5087 r5099  
    10041004        public static ObjectMapType MAP_TYPE; 
    10051005        public static ObjectSetType SET_TYPE; 
     1006        public static double ENCHANT_CHANCE; 
    10061007        public static double ENCHANT_CHANCE_ELEMENT_STONE; 
    10071008        public static double ENCHANT_CHANCE_ELEMENT_CRYSTAL; 
     
    16321633                                        ALT_FREIGHT_SLOTS = Integer.parseInt(Character.getProperty("MaximumFreightSlots", "200")); 
    16331634                                        ALT_FREIGHT_PRIECE = Integer.parseInt(Character.getProperty("FreightPriece", "1000")); 
     1635                                        ENCHANT_CHANCE = Double.parseDouble(Character.getProperty("EnchantChance", "66.66")); 
    16341636                                        ENCHANT_CHANCE_ELEMENT_STONE = Double.parseDouble(Character.getProperty("EnchantChanceElementStone", "50")); 
    16351637                                        ENCHANT_CHANCE_ELEMENT_CRYSTAL = Double.parseDouble(Character.getProperty("EnchantChanceElementCrystal", "30")); 
  • branches/unstable/L2J_Server_BETA/java/com/l2jserver/gameserver/datatables/EnchantItemTable.java

    r5087 r5099  
    8989                                                int type = L2Item.CRYSTAL_NONE; 
    9090                                                int maxEnchant = 0; 
    91                                                 double chance = 66.66; 
     91                                                double chance = Config.ENCHANT_CHANCE; 
    9292                                                int[] items = null; 
    9393                                                 
Note: See TracChangeset for help on using the changeset viewer.