mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Refactored checking whether a Pokémon/species is single gendered, tweaked console message.
This commit is contained in:
@@ -26,6 +26,12 @@ module GameData
|
||||
def name
|
||||
return _INTL(@real_name)
|
||||
end
|
||||
|
||||
# @return [Boolean] whether a Pokémon with this gender ratio can only ever
|
||||
# be a single gender
|
||||
def single_gendered?
|
||||
return @female_chance.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -216,6 +216,10 @@ module GameData
|
||||
return pbGetMessageFromHash(MessageTypes::Entries, @real_pokedex_entry)
|
||||
end
|
||||
|
||||
def single_gendered?
|
||||
return GameData::GenderRatio.get(@gender_ratio).single_gendered?
|
||||
end
|
||||
|
||||
def apply_metrics_to_sprite(sprite, index, shadow = false)
|
||||
if shadow
|
||||
if (index & 1) == 1 # Foe Pokémon
|
||||
|
||||
Reference in New Issue
Block a user