Advertisement
Guest User

Untitled

a guest
Mar 15th, 2018
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. 'use strict';
  2.  
  3. exports.BattleStatuses = {
  4. // Gem Energy
  5. raindance: {
  6. inherit: true,
  7. durationCallback: function (source, effect) {
  8. let duration = 5;
  9. if (source && source.hasItem('damprock')) duration += 3;
  10. if (this.isTerrain('rockyterrain') && source && source.hasAbility('gemenergy')) duration += 2;
  11. return duration;
  12. },
  13. },
  14. sunnyday: {
  15. inherit: true,
  16. durationCallback: function (source, effect) {
  17. let duration = 5;
  18. if (source && source.hasItem('heatrock')) duration += 3;
  19. if (this.isTerrain('rockyterrain') && source && source.hasAbility('gemenergy')) duration += 2;
  20. return duration;
  21. },
  22. },
  23. sandstorm: {
  24. inherit: true,
  25. durationCallback: function (source, effect) {
  26. let duration = 5;
  27. if (source && source.hasItem('smoothrock')) duration += 3;
  28. if (this.isTerrain('rockyterrain') && source && source.hasAbility('gemenergy')) duration += 2;
  29. return duration;
  30. },
  31. },
  32. hail: {
  33. inherit: true,
  34. durationCallback: function (source, effect) {
  35. let duration = 5;
  36. if (source && source.hasItem('icyrock')) duration += 3;
  37. if (this.isTerrain('rockyterrain') && source && source.hasAbility('gemenergy')) duration += 2;
  38. return duration;
  39. },
  40. },
  41. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement