Deprecate Pokemon#trainerID and Pokemon#publicID

This commit is contained in:
Joni Savolainen
2020-10-13 20:55:15 +03:00
parent c397aeba4e
commit ae0e13c228
7 changed files with 29 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ def pbLottery(winnum,nameVar=2,positionVar=3,matchedVar=4)
winmatched=0
for i in $Trainer.party
thismatched=0
id=i.publicID
id=i.owner.public_id
for j in 0...5
if (id/(10**j))%10 == (winnum/(10**j))%10
thismatched+=1
@@ -34,7 +34,7 @@ def pbLottery(winnum,nameVar=2,positionVar=3,matchedVar=4)
end
pbEachPokemon { |poke,_box|
thismatched=0
id=poke.publicID
id=poke.owner.public_id
for j in 0...5
if (id/(10**j))%10 == (winnum/(10**j))%10
thismatched+=1