CommonSkill.java 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. CLAN_LUCK(390, 1),
  48. ONYX_BEAST_TRANSFORMATION(617, 1),
  49. CREATE_COMMON(1320, 1),
  50. DIVINE_INSPIRATION(1405, 1),
  51. SERVITOR_SHARE(1557, 1),
  52. CARAVANS_SECRET_MEDICINE(2341, 1);
  53. private final SkillHolder _holder;
  54. private CommonSkill(int id, int level)
  55. {
  56. _holder = new SkillHolder(id, level);
  57. }
  58. public int getId()
  59. {
  60. return _holder.getSkillId();
  61. }
  62. public int getLevel()
  63. {
  64. return _holder.getSkillLvl();
  65. }
  66. public Skill getSkill()
  67. {
  68. return _holder.getSkill();
  69. }
  70. }