Disabled receiving a Mystery Gift item via the Continue/New Game's Debug menu

This commit is contained in:
Maruno17
2021-05-19 21:10:43 +01:00
parent e7d116780f
commit 2a1dafcd9c
2 changed files with 5 additions and 1 deletions

View File

@@ -195,6 +195,10 @@ def pbManageMysteryGifts
newgift=pbEditMysteryGift(gift[1],gift[2],gift[0],gift[3])
master[command]=newgift if newgift
elsif cmd==2 # Receive
if !$Trainer
pbMessage(_INTL("There is no save file loaded. Cannot receive any gifts."))
next
end
replaced=false
for i in 0...$Trainer.mystery_gifts.length
if $Trainer.mystery_gifts[i][0]==gift[0]