mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-12 15:44:57 +00:00
Minor refactoring to kill various Rubocop warnings
This commit is contained in:
@@ -379,7 +379,7 @@ class BattleFactoryData
|
||||
pbGetMessageFromHash(MessageTypes::TrainerNames, trainerdata[1]),
|
||||
trainerdata[0])
|
||||
opponentPkmn = pbBattleFactoryPokemon(pbBattleChallenge.rules, @bcdata.wins, @bcdata.swaps, @rentals)
|
||||
@opponent.party = opponentPkmn.shuffle[0, 3]
|
||||
@opponent.party = opponentPkmn.sample(3)
|
||||
end
|
||||
|
||||
def pbChooseRentals
|
||||
@@ -402,7 +402,7 @@ class BattleFactoryData
|
||||
trainerdata[0])
|
||||
opponentPkmn = pbBattleFactoryPokemon(pbBattleChallenge.rules, @bcdata.wins, @bcdata.swaps,
|
||||
[].concat(@rentals).concat(@oldopponent))
|
||||
@opponent.party = opponentPkmn.shuffle[0, 3]
|
||||
@opponent.party = opponentPkmn.sample(3)
|
||||
end
|
||||
|
||||
def pbChooseSwaps
|
||||
|
||||
Reference in New Issue
Block a user