JVBarbosa

[Hellas]BalanceClass

Jun 13th, 2016
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 18.61 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2JHellasC
  3. Index: java/com/l2jhellas/gameserver/model/actor/L2Character.java
  4. ===================================================================
  5. --- java/com/l2jhellas/gameserver/model/actor/L2Character.java  (revision 515)
  6. +++ java/com/l2jhellas/gameserver/model/actor/L2Character.java  (working copy)
  7. @@ -6663,7 +6663,17 @@
  8.     {
  9.         return getStat().getPDefUndead(target);
  10.     }
  11. +      
  12. +   public double getPDefAngels(final L2Character target)
  13. +   {
  14. +       return getStat().getPDefAngels(target);
  15. +   }
  16.    
  17. +   public double getPAtkAngels(final L2Character target)
  18. +   {
  19. +       return getStat().getPAtkAngels(target);
  20. +   }
  21. +  
  22.     public int getPDef(L2Character target)
  23.     {
  24.         return getStat().getPDef(target);
  25. Index: java/com/l2jhellas/gameserver/skills/Formulas.java
  26. ===================================================================
  27. --- java/com/l2jhellas/gameserver/skills/Formulas.java  (revision 515)
  28. +++ java/com/l2jhellas/gameserver/skills/Formulas.java  (working copy)
  29. @@ -19,6 +19,8 @@
  30.  import com.l2jhellas.Config;
  31.  import com.l2jhellas.gameserver.SevenSigns;
  32.  import com.l2jhellas.gameserver.SevenSignsFestival;
  33. +import com.l2jhellas.gameserver.custom.ClassDamageManager;
  34.  import com.l2jhellas.gameserver.instancemanager.ClanHallManager;
  35.  import com.l2jhellas.gameserver.instancemanager.SiegeManager;
  36.  import com.l2jhellas.gameserver.model.Inventory;
  37. @@ -1180,6 +1182,21 @@
  38.                 // damage /= 1; // 1.3
  39.             }
  40.         }
  41. +      
  42. +       if (Config.ENABLE_CLASS_DAMAGES && attacker instanceof L2PcInstance && target instanceof L2PcInstance)
  43. +       {
  44. +           damage = damage * ClassDamageManager.getDamageMultiplier((L2PcInstance) attacker, (L2PcInstance) target);
  45. +       }
  46.         return damage < 1 ? 1. : damage;
  47.     }
  48.  
  49. @@ -1368,6 +1385,21 @@
  50.             else
  51.                 damage *= attacker.calcStat(Stats.PVP_PHYS_SKILL_DMG, 1, null, null);
  52.         }
  53. +      
  54. +       if (Config.ENABLE_CLASS_DAMAGES && attacker instanceof L2PcInstance && target instanceof L2PcInstance)
  55. +       {
  56. +           damage = damage * ClassDamageManager.getDamageMultiplier((L2PcInstance) attacker, (L2PcInstance) target);
  57. +       }
  58.  
  59.         return damage;
  60.     }
  61. @@ -1448,6 +1480,21 @@
  62.             else
  63.                 damage *= attacker.calcStat(Stats.PVP_PHYS_SKILL_DMG, 1, null, null);
  64.         }
  65. +      
  66. +       if (Config.ENABLE_CLASS_DAMAGES && attacker instanceof L2PcInstance && target instanceof L2PcInstance)
  67. +       {
  68. +           damage = damage * ClassDamageManager.getDamageMultiplier((L2PcInstance) attacker, (L2PcInstance) target);
  69. +       }
  70.         return damage;
  71.     }
  72.  
  73. Index: java/com/l2jhellas/gameserver/custom/ClassDamageManager.java
  74. ===================================================================
  75. --- java/com/l2jhellas/gameserver/custom/ClassDamageManager.java    (revision 0)
  76. +++ java/com/l2jhellas/gameserver/custom/ClassDamageManager.java    (working copy)
  77. @@ -0,0 +1,229 @@
  78. +/*
  79. + * L2jFrozen Project - www.l2jfrozen.com
  80. + *
  81. + * This program is free software; you can redistribute it and/or modify
  82. + * it under the terms of the GNU General Public License as published by
  83. + * the Free Software Foundation; either version 2, or (at your option)
  84. + * any later version.
  85. + *
  86. + * This program is distributed in the hope that it will be useful,
  87. + * but WITHOUT ANY WARRANTY; without even the implied warranty of
  88. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  89. + * GNU General Public License for more details.
  90. + *
  91. + * You should have received a copy of the GNU General Public License
  92. + * along with this program; if not, write to the Free Software
  93. + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  94. + * 02111-1307, USA.
  95. + *
  96. + * http://www.gnu.org/copyleft/gpl.html
  97. + */
  98. +package com.l2jhellas.gameserver.custom;
  99. +
  100. +import java.io.File;
  101. +import java.io.FileInputStream;
  102. +import java.io.IOException;
  103. +import java.io.InputStream;
  104. +import java.util.Hashtable;
  105. +import java.util.Properties;
  106. +import java.util.Set;
  107. +import java.util.logging.Logger;
  108. +
  109. +
  110. +import com.l2jhellas.Config;
  111. +import com.l2jhellas.gameserver.datatables.xml.CharTemplateData;
  112. +import com.l2jhellas.gameserver.model.actor.instance.L2PcInstance;
  113. +
  114. +/**
  115. + * @author Shyla
  116. + */
  117. +public class ClassDamageManager
  118. +{
  119. +   private static final Logger _log = Logger.getLogger(ClassDamageManager.class.getName());
  120. +  
  121. +   private static Hashtable<Integer, Double> damage_to_mage = new Hashtable<>();
  122. +   private static Hashtable<Integer, Double> damage_to_fighter = new Hashtable<>();
  123. +   private static Hashtable<Integer, Double> damage_by_mage = new Hashtable<>();
  124. +   private static Hashtable<Integer, Double> damage_by_fighter = new Hashtable<>();
  125. +  
  126. +   private static Hashtable<Integer, String> id_to_name = new Hashtable<>();
  127. +   private static Hashtable<String, Integer> name_to_id = new Hashtable<>();
  128. +  
  129. +   public static void loadConfig()
  130. +   {
  131. +       final String SCRIPT = Config.MOD_CLASS_DAMAGES_FILE;
  132. +       InputStream is = null;
  133. +       File file = null;
  134. +       try
  135. +       {
  136. +           final Properties scriptSetting = new Properties();
  137. +           file = new File(SCRIPT);
  138. +           is = new FileInputStream(file);
  139. +           scriptSetting.load(is);
  140. +          
  141. +           final Set<Object> key_set = scriptSetting.keySet();
  142. +          
  143. +           for (final Object key : key_set)
  144. +           {
  145. +              
  146. +               final String key_string = (String) key;
  147. +              
  148. +               final String[] class_and_type = key_string.split("__");
  149. +              
  150. +               String class_name = class_and_type[0].replace("_", " ");
  151. +              
  152. +               if (class_name.equals("Eva s Saint"))
  153. +                   class_name = "Eva's Saint";
  154. +              
  155. +               final String type = class_and_type[1];
  156. +              
  157. +               final Integer class_id = CharTemplateData.getClassIdByName(class_name) - 1;
  158. +              
  159. +               id_to_name.put(class_id, class_name);
  160. +               name_to_id.put(class_name, class_id);
  161. +              
  162. +               if (type.equals("ToFighter"))
  163. +               {
  164. +                   damage_to_fighter.put(class_id, Double.parseDouble(scriptSetting.getProperty(key_string)));
  165. +               }
  166. +               else if (type.equals("ToMage"))
  167. +               {
  168. +                   damage_to_mage.put(class_id, Double.parseDouble(scriptSetting.getProperty(key_string)));
  169. +               }
  170. +               else if (type.equals("ByFighter"))
  171. +               {
  172. +                   damage_by_fighter.put(class_id, Double.parseDouble(scriptSetting.getProperty(key_string)));
  173. +               }
  174. +               else if (type.equals("ByMage"))
  175. +               {
  176. +                   damage_by_mage.put(class_id, Double.parseDouble(scriptSetting.getProperty(key_string)));
  177. +               }
  178. +               // LOGGER.info("class: "+class_name+" key: "+key_string+" classid: "+class_id);
  179. +               // LOGGER.info("multiplier: "+Double.parseDouble(scriptSetting.getProperty(key_string)));
  180. +              
  181. +           }
  182. +          
  183. +           _log.info("Loaded " + id_to_name.size() + " classes Damages configurations");
  184. +          
  185. +           /*
  186. +            * int class_id = 114; LOGGER.info("class: "+id_to_name.get(class_id)+" classid: "+class_id); LOGGER.info("multiplier to fighter: "+damage_to_fighter.get(class_id)); LOGGER.info("multiplier to mage: "+damage_to_mage.get(class_id));
  187. +            * LOGGER.info("multiplier by fighter: "+damage_by_fighter.get(class_id)); LOGGER.info("multiplier by mage: "+damage_by_mage.get(class_id));
  188. +            */
  189. +       }
  190. +       catch (final Exception e)
  191. +       {
  192. +           e.printStackTrace();
  193. +          
  194. +       }
  195. +       finally
  196. +       {
  197. +          
  198. +           if (is != null)
  199. +           {
  200. +               try
  201. +               {
  202. +                   is.close();
  203. +               }
  204. +               catch (final IOException e)
  205. +               {
  206. +                   e.printStackTrace();
  207. +               }
  208. +           }
  209. +       }
  210. +      
  211. +   }
  212. +  
  213. +   public static double getClassDamageToMage(final int id)
  214. +   {
  215. +      
  216. +       final Double multiplier = damage_to_mage.get(id);
  217. +      
  218. +       if (multiplier != null)
  219. +           return multiplier;
  220. +       return 1;
  221. +   }
  222. +  
  223. +   public static double getClassDamageToFighter(final int id)
  224. +   {
  225. +       final Double multiplier = damage_to_fighter.get(id);
  226. +       if (multiplier != null)
  227. +           return multiplier;
  228. +       return 1;
  229. +   }
  230. +  
  231. +   public static double getClassDamageByMage(final int id)
  232. +   {
  233. +       final Double multiplier = damage_by_mage.get(id);
  234. +       if (multiplier != null)
  235. +           return multiplier;
  236. +       return 1;
  237. +   }
  238. +  
  239. +   public static double getClassDamageByFighter(final int id)
  240. +   {
  241. +       final Double multiplier = damage_by_fighter.get(id);
  242. +       if (multiplier != null)
  243. +           return multiplier;
  244. +       return 1;
  245. +   }
  246. +  
  247. +   public static int getIdByName(final String name)
  248. +   {
  249. +      
  250. +       final Integer id = name_to_id.get(name);
  251. +       if (id != null)
  252. +           return id;
  253. +       return 0;
  254. +   }
  255. +  
  256. +   public static String getNameById(final int id)
  257. +   {
  258. +      
  259. +       final String name = id_to_name.get(id);
  260. +       if (name != null)
  261. +           return name;
  262. +       return "";
  263. +   }
  264. +  
  265. +   /**
  266. +    * return the product between the attackerMultiplier and attackedMultiplier configured into the classDamages.properties
  267. +    * @param attacker
  268. +    * @param attacked
  269. +    * @return output = attackerMulti*attackedMulti
  270. +    */
  271. +   public static double getDamageMultiplier(final L2PcInstance attacker, final L2PcInstance attacked)
  272. +   {
  273. +      
  274. +       if (attacker == null || attacked == null)
  275. +           return 1;
  276. +      
  277. +       double attackerMulti = 1;
  278. +      
  279. +       if (attacked.isMageClass())
  280. +           attackerMulti = getClassDamageToMage(attacker.getClassId().getId());
  281. +       else
  282. +           attackerMulti = getClassDamageToFighter(attacker.getClassId().getId());
  283. +      
  284. +       double attackedMulti = 1;
  285. +      
  286. +       if (attacker.isMageClass())
  287. +           attackedMulti = getClassDamageByMage(attacked.getClassId().getId());
  288. +       else
  289. +           attackedMulti = getClassDamageByFighter(attacked.getClassId().getId());
  290. +      
  291. +       final double output = attackerMulti * attackedMulti;
  292. +      
  293. +       if (Config.ENABLE_CLASS_DAMAGES_LOGGER)
  294. +       {
  295. +           _log.info("ClassDamageManager -");
  296. +           _log.info("ClassDamageManager - Attacker: " + attacker.getName() + " Class: " + getNameById(attacker.getClassId().getId()) + " ClassId: " + attacker.getClassId().getId() + " isMage: " + attacker.isMageClass() + " mult: " + attackerMulti);
  297. +           _log.info("ClassDamageManager - Attacked: " + attacked.getName() + " Class: " + getNameById(attacked.getClassId().getId()) + " ClassId: " + attacked.getClassId().getId() + " isMage: " + attacked.isMageClass() + " mult: " + attackedMulti);
  298. +           _log.info("ClassDamageManager - FinalMultiplier: " + output);
  299. +           _log.info("ClassDamageManager -");
  300. +       }
  301. +      
  302. +       return output;
  303. +      
  304. +   }
  305. +  
  306. +}
  307. Index: java/com/l2jhellas/Config.java
  308. ===================================================================
  309. --- java/com/l2jhellas/Config.java  (revision 515)
  310. +++ java/com/l2jhellas/Config.java  (working copy)
  311. @@ -81,12 +82,16 @@
  312.     private static final String EVENT_RAID_CONFIG_FILE = "./config/Events/Raid.ini";
  313.     private static final String EVENT_WEDDING_CONFIG_FILE = "./config/Events/Wedding.ini";
  314.     // Mods Folder
  315. +   private static final String MOD_OTHERS_CONFIG_FILE = "./config/Mods/Others.ini";
  316.     private static final String MOD_CHAMPIONS_CONFIG_FILE = "./config/Mods/Champions.ini";
  317.     private static final String MOD_L2JHellas_CONFIG_FILE = "./config/Mods/L2JHellas.ini";
  318.     private static final String MOD_RANK_CONFIG_FILE = "./config/Mods/Rank PvP System.ini";
  319.     private static final String MOD_AUTOMATION_CONFIG_FILE = "./config/Mods/Automatation.ini";
  320.     private static final String MOD_SMART_CB_CONFIG_FILE = "./config/Mods/Smart Community Board.ini";
  321.     private static final String MOD_CUSTOM_NPC_CONFIG_FILE = "./config/Mods/Custom Npcs.ini";
  322. +   public static final String MOD_CLASS_DAMAGES_FILE = "./config/Mods/ClassDamages.ini";
  323. +  
  324.     // Olympiad Folder
  325.     private static final String OLYMPIAD_FILE = "./config/Olympiad/OlySettings.ini";
  326.     // Others
  327. @@ -347,6 +352,29 @@
  328.     public static boolean CHAMPION_ENABLE;
  329.  
  330.     /**
  331. +    * Others Mods Config File
  332. +    */
  333. +   // Class Damages
  334. +   public static boolean ENABLE_CLASS_DAMAGES;
  335. +   public static boolean ENABLE_CLASS_DAMAGES_LOGGER;
  336. +
  337. +   /**
  338.      * PvP Config File
  339.      */
  340.     public static boolean REMOVE_BUFFS_ON_DIE;
  341. @@ -1592,6 +1620,66 @@
  342.             CHAMPION_SPCL_LVL_DIFF = Integer.parseInt(ChampionSettings.getProperty("ChampionSpecialItemLevelDiff", "0"));
  343.  
  344.             /**
  345. +            * Others Mods
  346. +            */
  347. +           /** Class Damage */
  348. +           ENABLE_CLASS_DAMAGES = Boolean.parseBoolean(OthersSettings.getProperty("EnableClassDamagesSettings", "False"));
  349. +           ENABLE_CLASS_DAMAGES_LOGGER = Boolean.parseBoolean(OthersSettings.getProperty("EnableClassDamagesLogger", "False"));
  350. +
  351. +           /**
  352.              * PvP
  353.              */
  354.             Properties PvPSettings = new Properties();
  355. Index: config/Mods/Others.ini
  356. ===================================================================
  357. --- config/Mods/Others.ini  (revision 0)
  358. +++ config/Mods/Others.ini  (working copy)
  359. @@ -0,0 +1,48 @@
  360. +#=============================================================
  361. +#                      Class Damages
  362. +#=============================================================
  363. +# Enable Class Damages Settings
  364. +EnableClassDamagesSettings = True
  365. +EnableClassDamagesLogger = True
  366. \ No newline at end of file
  367. Index: java/com/l2jhellas/gameserver/model/actor/stat/CharStat.java
  368. ===================================================================
  369. --- java/com/l2jhellas/gameserver/model/actor/stat/CharStat.java    (revision 515)
  370. +++ java/com/l2jhellas/gameserver/model/actor/stat/CharStat.java    (working copy)
  371. @@ -437,6 +437,16 @@
  372.     {
  373.         return calcStat(Stats.PATK_DRAGONS, 1, target, null);
  374.     }
  375. +   /** Return the PAtk Modifier against Angels. */
  376. +   public final double getPAtkAngels(final L2Character target)
  377. +   {
  378. +       return calcStat(Stats.PATK_ANGELS, 1, target, null);
  379. +   }
  380. +   /** Return the Pdef Modifier against Angels. */
  381. +   public final double getPDefAngels(final L2Character target)
  382. +   {
  383. +       return calcStat(Stats.PDEF_ANGELS, 1, target, null);
  384. +   }
  385.     /** Return the PAtk Modifier against insects. */
  386.     public final double getPAtkInsects(L2Character target)
  387.     {
  388. Index: config/Mods/classDamages.ini
  389. ===================================================================
  390. --- config/Mods/classDamages.ini    (revision 0)
  391. +++ config/Mods/classDamages.ini    (working copy)
  392. @@ -0,0 +1,134 @@
  393. +#Damages to Fighters
  394. +Duelist__ToFighter=1.0
  395. +DreadNought__ToFighter=1.0
  396. +Phoenix_Knight__ToFighter=1.0
  397. +Hell_Knight__ToFighter=1.0
  398. +Sagittarius__ToFighter=1.0
  399. +Adventurer__ToFighter=1.0
  400. +Archmage__ToFighter=1.0
  401. +Soultaker__ToFighter=1.0
  402. +Arcana_Lord__ToFighter=1.0
  403. +Cardinal__ToFighter=1.0
  404. +Hierophant__ToFighter=1.0
  405. +Eva_Templar__ToFighter=1.0
  406. +Sword_Muse__ToFighter=1.0
  407. +Wind_Rider__ToFighter=1.0
  408. +Moonlight_Sentinel__ToFighter=1.0
  409. +Mystic_Muse__ToFighter=1.0
  410. +Elemental_Master__ToFighter=1.0
  411. +Eva_s_Saint__ToFighter=1.0
  412. +Shillien_Templar__ToFighter=1.0
  413. +Spectral_Dancer__ToFighter=1.0
  414. +Ghost_Hunter__ToFighter=1.0
  415. +Ghost_Sentinel__ToFighter=1.0
  416. +Storm_Screamer__ToFighter=1.0
  417. +Spectral_Master__ToFighter=1.0
  418. +Shillien_Saint__ToFighter=1.0
  419. +Titan__ToFighter=1.0
  420. +Grand_Khauatari__ToFighter=1.0
  421. +Dominator__ToFighter=1.0
  422. +Doomcryer__ToFighter=1.0
  423. +Fortune_Seeker__ToFighter=1.0
  424. +Maestro__ToFighter=1.0
  425. +
  426. +
  427. +#Damages to Mage
  428. +Duelist__ToMage=1.0
  429. +DreadNought__ToMage=1.0
  430. +Phoenix_Knight__ToMage=1.0
  431. +Hell_Knight__ToMage=1.0
  432. +Sagittarius__ToMage=1.0
  433. +Adventurer__ToMage=1.0
  434. +Archmage__ToMage=1.0
  435. +Soultaker__ToMage=1.0
  436. +Arcana_Lord__ToMage=1.0
  437. +Cardinal__ToMage=1.0
  438. +Hierophant__ToMage=1.0
  439. +Eva_Templar__ToMage=1.0
  440. +Sword_Muse__ToMage=1.0
  441. +Wind_Rider__ToMage=1.0
  442. +Moonlight_Sentinel__ToMage=1.0
  443. +Mystic_Muse__ToMage=1.0
  444. +Elemental_Master__ToMage=1.0
  445. +Eva_s_Saint__ToMage=1.0
  446. +Shillien_Templar__ToMage=1.0
  447. +Spectral_Dancer__ToMage=1.0
  448. +Ghost_Hunter__ToMage=1.0
  449. +Ghost_Sentinel__ToMage=1.0
  450. +Storm_Screamer__ToMage=1.0
  451. +Spectral_Master__ToMage=1.0
  452. +Shillien_Saint__ToMage=1.0
  453. +Titan__ToMage=1.0
  454. +Grand_Khauatari__ToMage=1.0
  455. +Dominator__ToMage=1.0
  456. +Doomcryer__ToMage=1.0
  457. +Fortune_Seeker__ToMage=1.0
  458. +Maestro__ToMage=1.0
  459. +
  460. +
  461. +#Damages By Fighters
  462. +Duelist__ByFighter=1.0
  463. +DreadNought__ByFighter=1.0
  464. +Phoenix_Knight__ByFighter=1.0
  465. +Hell_Knight__ByFighter=1.0
  466. +Sagittarius__ByFighter=1.0
  467. +Adventurer__ByFighter=1.0
  468. +Archmage__ByFighter=1.0
  469. +Soultaker__ByFighter=1.0
  470. +Arcana_Lord__ByFighter=1.0
  471. +Cardinal__ByFighter=1.0
  472. +Hierophant__ByFighter=1.0
  473. +Eva_Templar__ByFighter=1.0
  474. +Sword_Muse__ByFighter=1.0
  475. +Wind_Rider__ByFighter=1.0
  476. +Moonlight_Sentinel__ByFighter=1.0
  477. +Mystic_Muse__ByFighter=1.0
  478. +Elemental_Master__ByFighter=1.0
  479. +Eva_s_Saint__ByFighter=1.0
  480. +Shillien_Templar__ByFighter=1.0
  481. +Spectral_Dancer__ByFighter=1.0
  482. +Ghost_Hunter__ByFighter=1.0
  483. +Ghost_Sentinel__ByFighter=1.0
  484. +Storm_Screamer__ByFighter=1.0
  485. +Spectral_Master__ByFighter=1.0
  486. +Shillien_Saint__ByFighter=1.0
  487. +Titan__ByFighter=1.0
  488. +Grand_Khauatari__ByFighter=1.0
  489. +Dominator__ByFighter=1.0
  490. +Doomcryer__ByFighter=1.0
  491. +Fortune_Seeker__ByFighter=1.0
  492. +Maestro__ByFighter=1.0
  493. +
  494. +
  495. +#Damages By Mages
  496. +Duelist__ByMage=1.0
  497. +DreadNought__ByMage=1.0
  498. +Phoenix_Knight__ByMage=1.0
  499. +Hell_Knight__ByMage=1.0
  500. +Sagittarius__ByMage=1.0
  501. +Adventurer__ByMage=1.0
  502. +Archmage__ByMage=1.0
  503. +Soultaker__ByMage=1.0
  504. +Arcana_Lord__ByMage=1.0
  505. +Cardinal__ByMage=1.0
  506. +Hierophant__ByMage=1.0
  507. +Eva_Templar__ByMage=1.0
  508. +Sword_Muse__ByMage=1.0
  509. +Wind_Rider__ByMage=1.0
  510. +Moonlight_Sentinel__ByMage=1.0
  511. +Mystic_Muse__ByMage=1.0
  512. +Elemental_Master__ByMage=1.0
  513. +Eva_s_Saint__ByMage=1.0
  514. +Shillien_Templar__ByMage=1.0
  515. +Spectral_Dancer__ByMage=1.0
  516. +Ghost_Hunter__ByMage=1.0
  517. +Ghost_Sentinel__ByMage=1.0
  518. +Storm_Screamer__ByMage=1.0
  519. +Spectral_Master__ByMage=1.0
  520. +Shillien_Saint__ByMage=1.0
  521. +Titan__ByMage=1.0
  522. +Grand_Khauatari__ByMage=1.0
  523. +Dominator__ByMage=1.0
  524. +Doomcryer__ByMage=1.0
  525. +Fortune_Seeker__ByMage=1.0
  526. +Maestro__ByMage=1.0
  527. \ No newline at end of file
  528. Index: java/com/l2jhellas/gameserver/GameServer.java
  529. ===================================================================
  530. --- java/com/l2jhellas/gameserver/GameServer.java   (revision 515)
  531. +++ java/com/l2jhellas/gameserver/GameServer.java   (working copy)
  532. @@ -42,6 +42,8 @@
  533.  import com.l2jhellas.gameserver.controllers.GameTimeController;
  534.  import com.l2jhellas.gameserver.controllers.RecipeController;
  535.  import com.l2jhellas.gameserver.controllers.TradeController;
  536. +import com.l2jhellas.gameserver.custom.ClassDamageManager;
  537.  import com.l2jhellas.gameserver.datatables.EventDroplist;
  538.  import com.l2jhellas.gameserver.datatables.csv.ExtractableItemsData;
  539.  import com.l2jhellas.gameserver.datatables.sql.BuffTemplateTable;
  540. @@ -369,6 +371,12 @@
  541.         {
  542.             CoupleManager.getInstance();
  543.         }
  544. +      
  545. +       // Class Damages
  546. +       if (Config.ENABLE_CLASS_DAMAGES) {
  547. +           ClassDamageManager.loadConfig();
  548. +       }
  549.  
  550.         IpCatcher.ipsLoad();
  551.         // run garbage collector
  552. Index: java/com/l2jhellas/gameserver/skills/Stats.java
  553. ===================================================================
  554. --- java/com/l2jhellas/gameserver/skills/Stats.java (revision 515)
  555. +++ java/com/l2jhellas/gameserver/skills/Stats.java (working copy)
  556. @@ -150,6 +150,7 @@
  557.     PATK_DRAGONS("pAtk-dragon"),
  558.     PATK_UNDEAD("pAtk-undead"),
  559.      PATK_MAGIC("pAtk-magic"),
  560. +    PATK_ANGELS("pAtk-angels"),
  561.  
  562.      // PDEF
  563.      PDEF_PLANTS("pDef-plants"),
  564. @@ -160,6 +161,7 @@
  565.      PDEF_UNDEAD("pDef-undead"),
  566.      PDEF_GIANTS("pDef-giants"),
  567.      PDEF_MAGIC("pDef-magic"),
  568. +    PDEF_ANGELS("pDef-angels"),
  569.  
  570.      // VALAKAS
  571.      PATK_VALAKAS("pAtk-valakas"),
Advertisement
Add Comment
Please, Sign In to add comment