Merge branch 'pr/43' into refactor

This commit is contained in:
Maruno17
2020-10-17 14:40:52 +01:00
18 changed files with 201 additions and 106 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