mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-22 14:26:01 +00:00
Removed all uses of ID numbers for species, some other code changes for abolishing ID numbers
This commit is contained in:
@@ -114,8 +114,13 @@ module GameData
|
||||
return self::DATA.keys
|
||||
end
|
||||
|
||||
# Yields all data in alphabetical order.
|
||||
# Yields all data in the order they were defined.
|
||||
def each
|
||||
self::DATA.each_value { |value| yield value }
|
||||
end
|
||||
|
||||
# Yields all data in alphabetical order.
|
||||
def each_alphabetically
|
||||
keys = self::DATA.keys.sort { |a, b| self::DATA[a].real_name <=> self::DATA[b].real_name }
|
||||
keys.each { |key| yield self::DATA[key] }
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user