mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-23 23:06:00 +00:00
Resolved many Rubocop warnings
This commit is contained in:
@@ -420,7 +420,7 @@ def pbGenerateWildPokemon(species,level,isRoamer=false)
|
||||
end
|
||||
# Shiny Charm makes shiny Pokémon more likely to generate
|
||||
if hasConst?(PBItems,:SHINYCHARM) && $PokemonBag.pbHasItem?(:SHINYCHARM)
|
||||
for i in 0...2 # 3 times as likely
|
||||
2.times do # 3 times as likely
|
||||
break if genwildpoke.shiny?
|
||||
genwildpoke.personalID = rand(65536)|(rand(65536)<<16)
|
||||
end
|
||||
@@ -454,7 +454,6 @@ def pbEncounter(enctype)
|
||||
encounter1 = $PokemonEncounters.pbEncounteredPokemon(enctype)
|
||||
encounter1 = EncounterModifier.trigger(encounter1)
|
||||
return false if !encounter1
|
||||
encounter2 = nil
|
||||
if $PokemonGlobal.partner
|
||||
encounter2 = $PokemonEncounters.pbEncounteredPokemon(enctype)
|
||||
encounter2 = EncounterModifier.trigger(encounter2)
|
||||
|
||||
Reference in New Issue
Block a user