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

@@ -380,11 +380,7 @@ def pbReceiveMysteryGift(id)
end
gift=$Trainer.mysterygift[index]
if gift[1]==0 # Pokémon
pID=rand(256)
pID|=rand(256)<<8
pID|=rand(256)<<16
pID|=rand(256)<<24
gift[2].personalID=pID
gift[2].personalID = rand(2**16) | rand(2**16) << 16
gift[2].calcStats
time=pbGetTimeNow
gift[2].timeReceived=time.getgm.to_i