Removed all deprecated code slated for removal, removed support for pre-v19 save files

This commit is contained in:
Maruno17
2021-06-20 18:37:37 +01:00
parent 53d27d3cf5
commit ca09e8c092
25 changed files with 4 additions and 1561 deletions

View File

@@ -101,7 +101,6 @@ class PokeBattle_Battler
end
def fainted?; return @hp<=0; end
alias isFainted? fainted?
attr_reader :status
@@ -138,7 +137,6 @@ class PokeBattle_Battler
end
def mega?; return @pokemon && @pokemon.mega?; end
alias isMega? mega?
def hasPrimal?
return false if @effects[PBEffects::Transform]
@@ -146,10 +144,8 @@ class PokeBattle_Battler
end
def primal?; return @pokemon && @pokemon.primal?; end
alias isPrimal? primal?
def shadowPokemon?; return false; end
alias isShadow? shadowPokemon?
def inHyperMode?; return false; end
@@ -187,7 +183,6 @@ class PokeBattle_Battler
return @effects[PBEffects::Illusion].shiny? if @effects[PBEffects::Illusion]
return @pokemon && @pokemon.shiny?
end
alias isShiny? shiny?
def owned?
return false if !@battle.wildBattle?

View File

@@ -23,22 +23,17 @@ class PokeBattle_FakeBattler
def totalhp; return @pokemon.totalhp; end
def displayGender; return @pokemon.gender; end
def shiny?; return @pokemon.shiny?; end
alias isShiny? shiny?
def isSpecies?(check_species)
return @pokemon && @pokemon.isSpecies?(check_species)
end
def fainted?; return false; end
alias isFainted? fainted?
def shadowPokemon?; return false; end
alias isShadow? shadowPokemon?
def hasMega?; return false; end
def mega?; return false; end
alias isMega? mega?
def hasPrimal?; return false; end
def primal?; return false; end
alias isPrimal? primal?
def captured; return false; end
def captured=(value); end