mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
shadow_pokemon.txt now supports sections for individual forms of a species
This commit is contained in:
@@ -551,6 +551,16 @@ module Compiler
|
||||
end
|
||||
|
||||
def validate_compiled_shadow_pokemon(hash)
|
||||
# Split species and form into their own values, generate compound ID from them
|
||||
if hash[:id].is_a?(Array)
|
||||
hash[:species] = hash[:id][0]
|
||||
hash[:form] = hash[:id][1] || 0
|
||||
if hash[:form] == 0
|
||||
hash[:id] = hash[:species]
|
||||
else
|
||||
hash[:id] = sprintf("%s_%d", hash[:species].to_s, hash[:form]).to_sym
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def validate_all_compiled_shadow_pokemon
|
||||
|
||||
Reference in New Issue
Block a user