From cc7ecf03267a8c0afa34621b99912a3d6859d8a3 Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Fri, 20 May 2022 17:35:02 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=20incorrect=20message=20when=20choosing?= =?UTF-8?q?=20a=20Pok=C3=A9mon=20to=20withdraw=20from=20Day=20Care?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Data/Scripts/012_Overworld/007_Overworld_DayCare.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Data/Scripts/012_Overworld/007_Overworld_DayCare.rb b/Data/Scripts/012_Overworld/007_Overworld_DayCare.rb index 58b4dd7fb..a32cfc714 100644 --- a/Data/Scripts/012_Overworld/007_Overworld_DayCare.rb +++ b/Data/Scripts/012_Overworld/007_Overworld_DayCare.rb @@ -463,7 +463,7 @@ class DayCare day_care.reset_egg_counters end - def self.choose(text, choice_var) + def self.choose(message, choice_var) day_care = $PokemonGlobal.day_care case day_care.count when 0 @@ -474,13 +474,13 @@ class DayCare commands = [] indices = [] day_care.slots.each_with_index do |slot, i| - text = slot.choice_text - next if !text - commands.push(text) + choice_text = slot.choice_text + next if !choice_text + commands.push(choice_text) indices.push(i) end commands.push(_INTL("CANCEL")) - command = pbMessage(text, commands, commands.length) + command = pbMessage(message, commands, commands.length) $game_variables[choice_var] = (command == commands.length - 1) ? -1 : indices[command] end end