mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
fixes download sprite option + various small fixes
This commit is contained in:
@@ -89,8 +89,6 @@ class PokeBattle_Battle
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def pbGainExpOne(idxParty, defeatedBattler, numPartic, expShare, expAll, showMessages = true)
|
def pbGainExpOne(idxParty, defeatedBattler, numPartic, expShare, expAll, showMessages = true)
|
||||||
pkmn = pbParty(0)[idxParty] # The Pokémon gaining EVs from defeatedBattler
|
pkmn = pbParty(0)[idxParty] # The Pokémon gaining EVs from defeatedBattler
|
||||||
growth_rate = pkmn.growth_rate
|
growth_rate = pkmn.growth_rate
|
||||||
@@ -111,7 +109,8 @@ class PokeBattle_Battle
|
|||||||
elsif Settings::SPLIT_EXP_BETWEEN_GAINERS # Gain from participating and/or Exp Share
|
elsif Settings::SPLIT_EXP_BETWEEN_GAINERS # Gain from participating and/or Exp Share
|
||||||
exp = a / (2 * numPartic) if isPartic
|
exp = a / (2 * numPartic) if isPartic
|
||||||
exp += a / (2 * expShare.length) if hasExpShare
|
exp += a / (2 * expShare.length) if hasExpShare
|
||||||
else # Gain from participating and/or Exp Share (Exp not split)
|
else
|
||||||
|
# Gain from participating and/or Exp Share (Exp not split)
|
||||||
exp = (isPartic) ? a : a / 2
|
exp = (isPartic) ? a : a / 2
|
||||||
end
|
end
|
||||||
elsif isPartic # Participated in battle, no Exp Shares held by anyone
|
elsif isPartic # Participated in battle, no Exp Shares held by anyone
|
||||||
@@ -180,7 +179,8 @@ class PokeBattle_Battle
|
|||||||
end
|
end
|
||||||
tempExp1 = pkmn.exp
|
tempExp1 = pkmn.exp
|
||||||
battler = pbFindBattler(idxParty)
|
battler = pbFindBattler(idxParty)
|
||||||
loop do # For each level gained in turn...
|
loop do
|
||||||
|
# For each level gained in turn...
|
||||||
# EXP Bar animation
|
# EXP Bar animation
|
||||||
levelMinExp = growth_rate.minimum_exp_for_level(curLevel)
|
levelMinExp = growth_rate.minimum_exp_for_level(curLevel)
|
||||||
levelMaxExp = growth_rate.minimum_exp_for_level(curLevel + 1)
|
levelMaxExp = growth_rate.minimum_exp_for_level(curLevel + 1)
|
||||||
@@ -220,8 +220,11 @@ class PokeBattle_Battle
|
|||||||
battler.pbUpdate(false) if battler
|
battler.pbUpdate(false) if battler
|
||||||
@scene.pbRefreshOne(battler.index) if battler
|
@scene.pbRefreshOne(battler.index) if battler
|
||||||
pbDisplayPaused(_INTL("{1} grew to Lv. {2}!", pkmn.name, curLevel))
|
pbDisplayPaused(_INTL("{1} grew to Lv. {2}!", pkmn.name, curLevel))
|
||||||
|
if !$game_switches[SWITCH_NO_LEVELS_MODE]
|
||||||
@scene.pbLevelUp(pkmn, battler, oldTotalHP, oldAttack, oldDefense,
|
@scene.pbLevelUp(pkmn, battler, oldTotalHP, oldAttack, oldDefense,
|
||||||
oldSpAtk, oldSpDef, oldSpeed)
|
oldSpAtk, oldSpDef, oldSpeed)
|
||||||
|
end
|
||||||
|
|
||||||
# Learn all moves learned at this level
|
# Learn all moves learned at this level
|
||||||
moveList = pkmn.getMoveList
|
moveList = pkmn.getMoveList
|
||||||
moveList.each { |m| pbLearnMove(idxParty, m[1]) if m[0] == curLevel }
|
moveList.each { |m| pbLearnMove(idxParty, m[1]) if m[0] == curLevel }
|
||||||
|
|||||||
Reference in New Issue
Block a user