From a13771e8bcb3d0491afa90c2f5d63db3671a40fc Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Mon, 7 Mar 2022 19:22:21 +0000 Subject: [PATCH] =?UTF-8?q?Fixed=20Shadow=20Pok=C3=A9mon=20saying=20how=20?= =?UTF-8?q?much=20Exp=20they=20gain=20from=20battle,=20fixed=20misposition?= =?UTF-8?q?ed=20text=20in=20some=20battle=20debug=20menus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../011_Battle/001_Battle/003_Battle_ExpAndMoveLearning.rb | 2 +- .../020_Debug/003_Debug menus/009_Debug_BattleExtraCode.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Data/Scripts/011_Battle/001_Battle/003_Battle_ExpAndMoveLearning.rb b/Data/Scripts/011_Battle/001_Battle/003_Battle_ExpAndMoveLearning.rb index ece55dc78..8617151f2 100644 --- a/Data/Scripts/011_Battle/001_Battle/003_Battle_ExpAndMoveLearning.rb +++ b/Data/Scripts/011_Battle/001_Battle/003_Battle_ExpAndMoveLearning.rb @@ -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 diff --git a/Data/Scripts/020_Debug/003_Debug menus/009_Debug_BattleExtraCode.rb b/Data/Scripts/020_Debug/003_Debug menus/009_Debug_BattleExtraCode.rb index d1d51cd88..b63a8eeae 100644 --- a/Data/Scripts/020_Debug/003_Debug menus/009_Debug_BattleExtraCode.rb +++ b/Data/Scripts/020_Debug/003_Debug menus/009_Debug_BattleExtraCode.rb @@ -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