mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Deprecate Pokemon#trainerID and Pokemon#publicID
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user