Added 1.5x screen size option, fixed 2**32 being 0, tidied up some code

This commit is contained in:
Maruno17
2020-11-22 17:32:10 +00:00
parent f362b7f847
commit 4af57f6501
11 changed files with 36 additions and 35 deletions

View File

@@ -415,7 +415,7 @@ def pbGenerateWildPokemon(species,level,isRoamer=false)
if GameData::Item.exists?(:SHINYCHARM) && $PokemonBag.pbHasItem?(:SHINYCHARM)
2.times do # 3 times as likely
break if genwildpoke.shiny?
genwildpoke.personalID = rand(65536)|(rand(65536)<<16)
genwildpoke.personalID = rand(2**16) | rand(2**16) << 16
end
end
# Give Pokérus

View File

@@ -351,7 +351,7 @@ def pbDayCareGenerateEgg
if shinyretries>0
shinyretries.times do
break if egg.shiny?
egg.personalID = rand(65536)|(rand(65536)<<16)
egg.personalID = rand(2**16) | rand(2**16) << 16
end
end
# Inheriting ability from the mother