mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Code tidying with Rubocop
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
#===============================================================================
|
||||
# Load various wild battle music
|
||||
#===============================================================================
|
||||
def pbGetWildBattleBGM(_wildParty) # wildParty is an array of Pokémon objects
|
||||
# wildParty is an array of Pokémon objects.
|
||||
def pbGetWildBattleBGM(_wildParty)
|
||||
return $PokemonGlobal.nextBattleBGM.clone if $PokemonGlobal.nextBattleBGM
|
||||
ret = nil
|
||||
if !ret
|
||||
@@ -70,7 +71,8 @@ def pbPlayTrainerIntroBGM(trainer_type)
|
||||
pbBGMPlay(bgm)
|
||||
end
|
||||
|
||||
def pbGetTrainerBattleBGM(trainer) # can be a Player, NPCTrainer or an array of them
|
||||
# Can be a Player, NPCTrainer or an array of them.
|
||||
def pbGetTrainerBattleBGM(trainer)
|
||||
return $PokemonGlobal.nextBattleBGM.clone if $PokemonGlobal.nextBattleBGM
|
||||
ret = nil
|
||||
music = nil
|
||||
@@ -112,7 +114,8 @@ def pbGetTrainerBattleBGMFromType(trainertype)
|
||||
return ret
|
||||
end
|
||||
|
||||
def pbGetTrainerVictoryBGM(trainer) # can be a Player, NPCTrainer or an array of them
|
||||
# Can be a Player, NPCTrainer or an array of them.
|
||||
def pbGetTrainerVictoryBGM(trainer)
|
||||
if $PokemonGlobal.nextBattleVictoryBGM
|
||||
return $PokemonGlobal.nextBattleVictoryBGM.clone
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user