CommonSkill.java 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Copyright (C) 2004-2014 L2J Server
  3. *
  4. * This file is part of L2J Server.
  5. *
  6. * L2J Server is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * L2J Server is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. package com.l2jserver.gameserver.model.skills;
  20. import com.l2jserver.gameserver.model.holders.SkillHolder;
  21. /**
  22. * An Enum to hold some important references to commonly used skills
  23. * @author DrHouse
  24. */
  25. public enum CommonSkill
  26. {
  27. RAID_CURSE(4215, 1),
  28. RAID_CURSE2(4515, 1),
  29. SEAL_OF_RULER(246, 1),
  30. BUILD_HEADQUARTERS(247, 1),
  31. WYVERN_BREATH(4289, 1),
  32. STRIDER_SIEGE_ASSAULT(325, 1),
  33. FIREWORK(5965, 1),
  34. LARGE_FIREWORK(2025, 1),
  35. BLESSING_OF_PROTECTION(5182, 1),
  36. VOID_BURST(3630, 1),
  37. VOID_FLOW(3631, 1),
  38. THE_VICTOR_OF_WAR(5074, 1),
  39. THE_VANQUISHED_OF_WAR(5075, 1),
  40. SPECIAL_TREE_RECOVERY_BONUS(2139, 1),
  41. WEAPON_GRADE_PENALTY(6209, 1),
  42. ARMOR_GRADE_PENALTY(6213, 1),
  43. CUBIC_MASTERY(143, 1),
  44. CREATE_DWARVEN(172, 1),
  45. LUCKY(194, 1),
  46. EXPERTISE(239, 1),
  47. CRYSTALLIZE(248, 1),
  48. CLAN_LUCK(390, 1),
  49. ONYX_BEAST_TRANSFORMATION(617, 1),
  50. CREATE_COMMON(1320, 1),
  51. DIVINE_INSPIRATION(1405, 1),
  52. SERVITOR_SHARE(1557, 1),
  53. CARAVANS_SECRET_MEDICINE(2341, 1);
  54. private final SkillHolder _holder;
  55. private CommonSkill(int id, int level)
  56. {
  57. _holder = new SkillHolder(id, level);
  58. }
  59. public int getId()
  60. {
  61. return _holder.getSkillId();
  62. }
  63. public int getLevel()
  64. {
  65. return _holder.getSkillLvl();
  66. }
  67. public Skill getSkill()
  68. {
  69. return _holder.getSkill();
  70. }
  71. }