Code tidying with Rubocop

This commit is contained in:
Maruno17
2023-07-18 22:42:10 +01:00
parent 6053363715
commit a5734eaf46
68 changed files with 276 additions and 232 deletions

View File

@@ -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

View File

@@ -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