mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
formatted wondertrade script
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
=begin
|
=begin
|
||||||
*** Wonder Trade Script by Black Eternity ***
|
*** Wonder Trade Script by Black Eternity ***
|
||||||
This script is to mimic Wonder Trade from an offline perspective.
|
This script is to mimic Wonder Trade from an offline perspective.
|
||||||
@@ -1004,7 +1003,6 @@ RandPokeNick=[
|
|||||||
"maymay"
|
"maymay"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def pbWonderTrade(lvl, except = [], except2 = [], rare = true)
|
def pbWonderTrade(lvl, except = [], except2 = [], rare = true)
|
||||||
# for i in 0...except.length # Gets ID of pokemon in exception array
|
# for i in 0...except.length # Gets ID of pokemon in exception array
|
||||||
# except[i]=getID(PBSpecies,except[i]) if !except[i].is_a?(Integer)
|
# except[i]=getID(PBSpecies,except[i]) if !except[i].is_a?(Integer)
|
||||||
@@ -1048,7 +1046,6 @@ def pbWonderTrade(lvl,except=[],except2=[],rare=true)
|
|||||||
#Redo loop if below BST - 200
|
#Redo loop if below BST - 200
|
||||||
species = 0 if bst < (chosenBST - 200)
|
species = 0 if bst < (chosenBST - 200)
|
||||||
|
|
||||||
|
|
||||||
# raise _INTL("{1}'s bst ist {2}, new ist {3}",myPoke,chosenBST,bst)
|
# raise _INTL("{1}'s bst ist {2}, new ist {3}",myPoke,chosenBST,bst)
|
||||||
|
|
||||||
# species=0 if (except.include?(species) && except2.include?(species))
|
# species=0 if (except.include?(species) && except2.include?(species))
|
||||||
@@ -1078,7 +1075,8 @@ def pbWonderTrade(lvl,except=[],except2=[],rare=true)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def pbGRS(minBST,chosenBST,luck,rare,except2) #pbGenerateRandomSpecies (le nom doit etre short pour etre callé dans events)
|
def pbGRS(minBST, chosenBST, luck, rare, except2)
|
||||||
|
#pbGenerateRandomSpecies (le nom doit etre short pour etre callé dans events)
|
||||||
# The following excecption fields are for hardcoding the blacklisted pokemon
|
# The following excecption fields are for hardcoding the blacklisted pokemon
|
||||||
# without adding them in the events.
|
# without adding them in the events.
|
||||||
#except+=[]
|
#except+=[]
|
||||||
@@ -1102,7 +1100,6 @@ while (species==0) # Loop Start
|
|||||||
#Redo loop if below BST - 200
|
#Redo loop if below BST - 200
|
||||||
species = 0 if bst < (chosenBST - 200)
|
species = 0 if bst < (chosenBST - 200)
|
||||||
|
|
||||||
|
|
||||||
# raise _INTL("{1}'s bst ist {2}, new ist {3}",myPoke,chosenBST,bst)
|
# raise _INTL("{1}'s bst ist {2}, new ist {3}",myPoke,chosenBST,bst)
|
||||||
|
|
||||||
# species=0 if (except.include?(species) && except2.include?(species))
|
# species=0 if (except.include?(species) && except2.include?(species))
|
||||||
|
|||||||
Reference in New Issue
Block a user