TedJustice

Buoyancy Prowler and Subterranean

Jul 12th, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 2.25 KB | None | 0 0
  1. ##########################################################################################################
  2. #               BUOYANCY, PROWLER, AND SUBTERRANEAN
  3. #                   How to Install
  4. #   1. Create abilities in PBS/abilities.txt with the internal names BUOYANCY, PROWLER, and SUBTERRANEAN
  5. #       (You can just add whichever ones you plan on using.)
  6. #   2. To add Buoyancy's effect, add the following code below line 513 in PokeBattle_Battler:
  7. ##########################################################################################################
  8.  
  9. # BUOYANCY ABILITY MOD
  10.     if isConst?(self.ability,PBAbilities,:BUOYANCY) && (@battle.environment==PBEnvironment::MovingWater || @battle.environment==PBEnvironment::StillWater || @battle.environment==PBEnvironment::Underwater)
  11.       spdpercent = 15  # <-- Change this number to change the percent increase.
  12.       speed=speed*(1 + (spdpercent/100))
  13.     end
  14. # END BUOYANCY ABILITY MOD  
  15.  
  16. ##########################################################################################################
  17. #   3. To add Prowler's effect, add the following code below line 377 in PokeBattle_Move:
  18. ##########################################################################################################
  19.  
  20. # PROWLER ABILITY MOD
  21.     if isConst?(opponent.ability,PBAbilities,:PROWLER) && (@battle.environment==PBEnvironment::Grass || @battle.environment==PBEnvironment::TallGrass)
  22.       evdpercent = 15  # <-- Change this number to change the percent increase.
  23.       evasion=evasion*(1 + (evdpercent/100))
  24.     end
  25. # END PROWLER ABILITY MOD
  26.  
  27. ##########################################################################################################
  28. #   3. To add Subterranean's effect, add the following code below line 648 in PokeBattle_Move:
  29. #       (Note: If you added Prowler, it will be below line 654 instead.)
  30. ##########################################################################################################
  31.  
  32. # SUBTERRANEAN ABILITY MOD
  33.     if isConst?(opponent.ability,PBAbilities,:SUBTERRANEAN) && (@battle.environment==PBEnvironment::Rock || @battle.environment==PBEnvironment::Cave)
  34.       defpercent = 15  # <-- Change this number to change the percent increase.
  35.       defense=defense*(1 + (defpercent/100))
  36.     end
  37. # END SUBTERRANEAN ABILITY MOD
Advertisement
Add Comment
Please, Sign In to add comment