mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 23:24:59 +00:00
Implemented GameData::Encounter, created new encounters.txt format, tweaked Vs animation filenames
This commit is contained in:
@@ -40,6 +40,7 @@ module GameData
|
||||
return (self::DATA.has_key?(other)) ? self::DATA[other] : nil
|
||||
end
|
||||
|
||||
# Yields all data in order of their id_number.
|
||||
def each
|
||||
keys = self::DATA.keys.sort { |a, b| self::DATA[a].id_number <=> self::DATA[b].id_number }
|
||||
keys.each { |key| yield self::DATA[key] if !key.is_a?(Integer) }
|
||||
@@ -130,5 +131,6 @@ module GameData
|
||||
Type.load
|
||||
Species.load
|
||||
Trainer.load
|
||||
Encounter.load
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user