Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##########################################################################################################
- # BUOYANCY, PROWLER, AND SUBTERRANEAN
- # How to Install
- # 1. Create abilities in PBS/abilities.txt with the internal names BUOYANCY, PROWLER, and SUBTERRANEAN
- # (You can just add whichever ones you plan on using.)
- # 2. To add Buoyancy's effect, add the following code below line 513 in PokeBattle_Battler:
- ##########################################################################################################
- # BUOYANCY ABILITY MOD
- if isConst?(self.ability,PBAbilities,:BUOYANCY) && (@battle.environment==PBEnvironment::MovingWater || @battle.environment==PBEnvironment::StillWater || @battle.environment==PBEnvironment::Underwater)
- spdpercent = 15 # <-- Change this number to change the percent increase.
- speed=speed*(1 + (spdpercent/100))
- end
- # END BUOYANCY ABILITY MOD
- ##########################################################################################################
- # 3. To add Prowler's effect, add the following code below line 377 in PokeBattle_Move:
- ##########################################################################################################
- # PROWLER ABILITY MOD
- if isConst?(opponent.ability,PBAbilities,:PROWLER) && (@battle.environment==PBEnvironment::Grass || @battle.environment==PBEnvironment::TallGrass)
- evdpercent = 15 # <-- Change this number to change the percent increase.
- evasion=evasion*(1 + (evdpercent/100))
- end
- # END PROWLER ABILITY MOD
- ##########################################################################################################
- # 3. To add Subterranean's effect, add the following code below line 648 in PokeBattle_Move:
- # (Note: If you added Prowler, it will be below line 654 instead.)
- ##########################################################################################################
- # SUBTERRANEAN ABILITY MOD
- if isConst?(opponent.ability,PBAbilities,:SUBTERRANEAN) && (@battle.environment==PBEnvironment::Rock || @battle.environment==PBEnvironment::Cave)
- defpercent = 15 # <-- Change this number to change the percent increase.
- defense=defense*(1 + (defpercent/100))
- end
- # END SUBTERRANEAN ABILITY MOD
Advertisement
Add Comment
Please, Sign In to add comment