CommonSkill.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. CREATE_DWARVEN(172, 1),
  44. LUCKY(194, 1),
  45. EXPERTISE(239, 1),
  46. CRYSTALLIZE(248, 1),
  47. ONYX_BEAST_TRANSFORMATION(617, 1),
  48. CREATE_COMMON(1320, 1),
  49. DIVINE_INSPIRATION(1405, 1),
  50. SERVITOR_SHARE(1557, 1),
  51. CARAVANS_SECRET_MEDICINE(2341, 1);
  52. private final SkillHolder _holder;
  53. private CommonSkill(int id, int level)
  54. {
  55. _holder = new SkillHolder(id, level);
  56. }
  57. public int getId()
  58. {
  59. return _holder.getSkillId();
  60. }
  61. public int getLevel()
  62. {
  63. return _holder.getSkillLvl();
  64. }
  65. public Skill getSkill()
  66. {
  67. return _holder.getSkill();
  68. }
  69. }