mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed demo party not clearing the party before adding itself, fixed Pokémon icon renamer/mover not moving shiny Pokémon icons properly, added GameData#Something#keys method
This commit is contained in:
@@ -46,6 +46,12 @@ module GameData
|
||||
return (self::DATA.has_key?(other)) ? self::DATA[other] : nil
|
||||
end
|
||||
|
||||
# Returns the array of keys for the data.
|
||||
# @return [Array]
|
||||
def keys
|
||||
return self::DATA.keys
|
||||
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 }
|
||||
@@ -102,6 +108,12 @@ module GameData
|
||||
return (self::DATA.has_key?(other)) ? self::DATA[other] : nil
|
||||
end
|
||||
|
||||
# Returns the array of keys for the data.
|
||||
# @return [Array]
|
||||
def keys
|
||||
return self::DATA.keys
|
||||
end
|
||||
|
||||
# Yields all data in alphabetical order.
|
||||
def each
|
||||
keys = self::DATA.keys.sort { |a, b| self::DATA[a].real_name <=> self::DATA[b].real_name }
|
||||
@@ -153,6 +165,12 @@ module GameData
|
||||
return (self::DATA.has_key?(other)) ? self::DATA[other] : nil
|
||||
end
|
||||
|
||||
# Returns the array of keys for the data.
|
||||
# @return [Array]
|
||||
def keys
|
||||
return self::DATA.keys
|
||||
end
|
||||
|
||||
# Yields all data in numberical order.
|
||||
def each
|
||||
keys = self::DATA.keys.sort
|
||||
|
||||
@@ -543,6 +543,7 @@ DebugMenuCommands.register("demoparty", {
|
||||
for id in species
|
||||
party.push(id) if GameData::Species.exists?(id)
|
||||
end
|
||||
$Trainer.party.clear
|
||||
# Generate Pokémon of each species at level 20
|
||||
party.each do |species|
|
||||
pkmn = Pokemon.new(species, 20)
|
||||
|
||||
@@ -56,6 +56,8 @@ module Compiler
|
||||
else
|
||||
prefix = (name[/b/]) ? "Back/" : "Front/"
|
||||
end
|
||||
elsif default_prefix == "Icons/"
|
||||
prefix = "Icons shiny/" if name[/s/] && !name[/shadow/]
|
||||
end
|
||||
if name[/000/]
|
||||
species = "000"
|
||||
@@ -69,7 +71,7 @@ module Compiler
|
||||
shadow = "_shadow" if name[/_shadow/]
|
||||
if name[/egg/]
|
||||
prefix = "Eggs/"
|
||||
crack = "_icon" if default_prefix == "Icons/"
|
||||
crack = "_icon" if default_prefix == "Icons/" || default_prefix == "Icons shiny/"
|
||||
crack = "_cracks" if name[/eggCracks/]
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user