Fixed Shadow Pokémon saying how much Exp they gain from battle, fixed mispositioned text in some battle debug menus

This commit is contained in:
Maruno17
2022-03-07 19:22:21 +00:00
parent bcb31c7a56
commit a13771e8bc
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ class Battle
next if !pkmn.able?
next unless b.participants.include?(i) || expShare.include?(i)
pbGainEVsOne(i, b)
pbGainExpOne(i, b, numPartic, expShare, expAll)
pbGainExpOne(i, b, numPartic, expShare, expAll, !pkmn.shadowPokemon?)
end
# Gain EVs and Exp for all other Pokémon because of Exp All
if expAll

View File

@@ -242,8 +242,8 @@ class SpriteWindow_DebugBattleFieldEffects < Window_DrawableCommand
total_width = rect.width
name_width = total_width * 80 / 100
value_width = total_width * 20 / 100
self.shadowtext(rect.x, rect.y, name_width, rect.height, variable_data[:name], 0, color)
self.shadowtext(rect.x + name_width, rect.y, value_width, rect.height, variable_text, 1, color)
self.shadowtext(rect.x, rect.y + 8, name_width, rect.height, variable_data[:name], 0, color)
self.shadowtext(rect.x + name_width, rect.y + 8, value_width, rect.height, variable_text, 1, color)
end
end