mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 14:14:59 +00:00
Rename PokeBattle_Pokemon to Pokemon
Deprecate PokeBattle_Pokemon and pbNewPkmn
This commit is contained in:
@@ -75,12 +75,12 @@ class PokeBattle_Battle
|
||||
PBStats.eachStat do |s|
|
||||
evGain = evYield[s]
|
||||
# Can't exceed overall limit
|
||||
if evTotal+evGain>PokeBattle_Pokemon::EV_LIMIT
|
||||
evGain = PokeBattle_Pokemon::EV_LIMIT-evTotal
|
||||
if evTotal+evGain>Pokemon::EV_LIMIT
|
||||
evGain = Pokemon::EV_LIMIT-evTotal
|
||||
end
|
||||
# Can't exceed individual stat limit
|
||||
if pkmn.ev[s]+evGain>PokeBattle_Pokemon::EV_STAT_LIMIT
|
||||
evGain = PokeBattle_Pokemon::EV_STAT_LIMIT-pkmn.ev[s]
|
||||
if pkmn.ev[s]+evGain>Pokemon::EV_STAT_LIMIT
|
||||
evGain = Pokemon::EV_STAT_LIMIT-pkmn.ev[s]
|
||||
end
|
||||
# Add EV gain
|
||||
pkmn.ev[s] += evGain
|
||||
|
||||
@@ -450,7 +450,7 @@ class PokeBattle_Scene
|
||||
# Opens the nicknaming screen for a newly caught Pokémon
|
||||
#=============================================================================
|
||||
def pbNameEntry(helpText,pkmn)
|
||||
return pbEnterPokemonName(helpText,0,PokeBattle_Pokemon::MAX_POKEMON_NAME_SIZE,"",pkmn)
|
||||
return pbEnterPokemonName(helpText, 0, Pokemon::MAX_POKEMON_NAME_SIZE, "", pkmn)
|
||||
end
|
||||
|
||||
#=============================================================================
|
||||
|
||||
Reference in New Issue
Block a user