mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Code tidying with Rubocop
This commit is contained in:
@@ -376,7 +376,8 @@ def pbUnlockWallpaper(index)
|
||||
$PokemonStorage.unlockedWallpapers[index] = true
|
||||
end
|
||||
|
||||
def pbLockWallpaper(index) # Don't know why you'd want to do this
|
||||
# NOTE: I don't know why you'd want to do this, but here you go.
|
||||
def pbLockWallpaper(index)
|
||||
$PokemonStorage.unlockedWallpapers[index] = false
|
||||
end
|
||||
|
||||
|
||||
@@ -46,7 +46,8 @@ class Pokemon
|
||||
return (formName && !formName.empty?) ? formName : _INTL("Mega {1}", species_data.name)
|
||||
end
|
||||
|
||||
def megaMessage # 0=default message, 1=Rayquaza message
|
||||
# 0=default message, 1=Rayquaza message.
|
||||
def megaMessage
|
||||
megaForm = self.getMegaForm
|
||||
message_number = GameData::Species.get_species_form(@species, megaForm)&.mega_message
|
||||
return message_number || 0
|
||||
|
||||
Reference in New Issue
Block a user