Generalised a species' types to allow any number of types

This commit is contained in:
Maruno17
2022-12-31 17:24:33 +00:00
parent 3a4b01e2dc
commit 3fe324d0da
24 changed files with 200 additions and 203 deletions

View File

@@ -312,7 +312,10 @@ module Compiler
hash[:evolutions].each { |evo| evo[3] = false }
end
# Remove duplicate types
hash[:types].uniq! if hash[:types].is_a?(Array)
if hash[:types].is_a?(Array)
hash[:types].uniq!
hash[:types].compact!
end
end
def validate_all_compiled_pokemon