Advertisement
Guest User

cleanup

a guest
Jul 19th, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.91 KB | None | 0 0
  1. -           ClassId classes = player.getClassId();
  2. -           switch (classes)
  3. +           List<Integer> classes = Arrays.asList(88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118);
  4. +           if (classes.contains(player.getClassId().getId()))
  5.             {
  6. -               case ADVENTURER:
  7. -               case SAGGITARIUS:
  8. -               case DUELIST:
  9. -               case TITAN:
  10. -               case GRAND_KHAVATARI:
  11. -               case PHOENIX_KNIGHT:
  12. -               case MOONLIGHT_SENTINEL:
  13. -               case FORTUNE_SEEKER:
  14. -               case MAESTRO:
  15. -               case DREADNOUGHT:
  16. -               case HELL_KNIGHT:
  17. -               case EVAS_TEMPLAR:
  18. -               case SWORD_MUSE:
  19. -               case WIND_RIDER:
  20. -               case SHILLIEN_TEMPLAR:
  21. -               case SPECTRAL_DANCER:
  22. -               case GHOST_HUNTER:
  23. -               case GHOST_SENTINEL:
  24. -               case SOULTAKER:
  25. -               case MYSTIC_MUSE:
  26. -               case ARCHMAGE:
  27. -               case ARCANA_LORD:
  28. -               case ELEMENTAL_MASTER:
  29. -               case CARDINAL:
  30. -               case STORM_SCREAMER:
  31. -               case SPECTRAL_MASTER:
  32. -               case SHILLIEN_SAINT:
  33. -               case DOMINATOR:
  34. -               case DOOMCRYER:
  35.  
  36. TvTEvent.java
  37. -               switch (killerPlayerInstance._tvtkills)
  38. +               List<Integer> kills = Arrays.asList(5, 8, 12, 15, 20);
  39. +               if (kills.contains(killerPlayerInstance._tvtkills))
  40.                 {
  41. -                   case 5: // Reward after 5 kills without die
  42. -                   case 8: // Reward after 8 kills without die
  43. -                   case 12: // Reward after 12 kills without die
  44. -                   case 15: // Reward after 15 kills without die
  45. -                   case 20: // Reward after 20 kills without die
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement