clown nose

This commit is contained in:
chardub
2025-03-25 16:37:22 -04:00
parent 4e26dbfeca
commit 37938f864b
540 changed files with 144 additions and 49 deletions

View File

@@ -389,7 +389,7 @@ module Compiler
pbEachFileSection(f) { |contents, species_number|
FileLineData.setSection(species_number, "header", nil) # For error reporting
# Raise an error if a species number is invalid or used twice
if species_number == 0
if species_number< 0
raise _INTL("A Pokémon species can't be numbered 0 ({1}).", path)
elsif GameData::Species::DATA[species_number]
raise _INTL("Species ID number '{1}' is used twice.\r\n{2}", species_number, FileLineData.linereport)