From 8310114252fa8a84aebd327b7589fe181807988a Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Sun, 29 May 2022 18:53:24 +0100 Subject: [PATCH] Fixed some warning messages relating to compiling moves.txt --- Data/Scripts/021_Compiler/002_Compiler_CompilePBS.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Data/Scripts/021_Compiler/002_Compiler_CompilePBS.rb b/Data/Scripts/021_Compiler/002_Compiler_CompilePBS.rb index f8f800340..ad62d1e3f 100644 --- a/Data/Scripts/021_Compiler/002_Compiler_CompilePBS.rb +++ b/Data/Scripts/021_Compiler/002_Compiler_CompilePBS.rb @@ -303,9 +303,11 @@ module Compiler if move_hash # Sanitise data if (move_hash[:category] || 2) == 2 && (move_hash[:base_damage] || 0) != 0 - raise _INTL("Move {1} is defined as a Status move with a non-zero base damage.\r\n{2}", line[2], FileLineData.linereport) + raise _INTL("Move {1} is defined as a Status move with a non-zero base damage.\r\n{2}", + move_hash[:name], FileLineData.linereport) elsif (move_hash[:category] || 2) != 2 && (move_hash[:base_damage] || 0) == 0 - print _INTL("Warning: Move {1} was defined as Physical or Special but had a base damage of 0. Changing it to a Status move.\r\n{2}", line[2], FileLineData.linereport) + print _INTL("Warning: Move {1} was defined as Physical or Special but had a base damage of 0. Changing it to a Status move.\r\n{2}", + move_hash[:name], FileLineData.linereport) move_hash[:category] = 2 end GameData::Move.register(move_hash) @@ -341,9 +343,11 @@ module Compiler if move_hash # Sanitise data if (move_hash[:category] || 2) == 2 && (move_hash[:base_damage] || 0) != 0 - raise _INTL("Move {1} is defined as a Status move with a non-zero base damage.\r\n{2}", line[2], FileLineData.linereport) + raise _INTL("Move {1} is defined as a Status move with a non-zero base damage.\r\n{2}", + move_hash[:name], FileLineData.linereport) elsif (move_hash[:category] || 2) != 2 && (move_hash[:base_damage] || 0) == 0 - print _INTL("Warning: Move {1} was defined as Physical or Special but had a base damage of 0. Changing it to a Status move.\r\n{2}", line[2], FileLineData.linereport) + print _INTL("Warning: Move {1} was defined as Physical or Special but had a base damage of 0. Changing it to a Status move.\r\n{2}", + move_hash[:name], FileLineData.linereport) move_hash[:category] = 2 end GameData::Move.register(move_hash)