mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Added 1.5x screen size option, fixed 2**32 being 0, tidied up some code
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user