if $game_variables[30] < 2
ratio=[247,247,247,247,10,1,1]
craft=items[rand(items.length)]
case craft
when :BLACKAPRICORN
table=[:POKEBALL,:GREATBALL,:DUSKBALL,:LUXURYBALL,:HEAVYBALL,:SAFARIBALL,:SPORTBALL]
when :BLUEAPRICORN
table=[:POKEBALL,:GREATBALL,:DIVEBALL,:NETBALL,:LUREBALL,:SAFARIBALL,:SPORTBALL]
when :GREENAPRICORN
table=[:POKEBALL,:GREATBALL,:ULTRABALL,:NESTBALL,:FRIENDBALL,:SAFARIBALL,:SPORTBALL]
when :PINKAPRICORN
table=[:POKEBALL,:GREATBALL,:ULTRABALL,:HEALBALL,:LOVEBALL,:SAFARIBALL,:SPORTBALL]
when :REDAPRICORN
table=[:POKEBALL,:GREATBALL,:ULTRABALL,:REPEATBALL,:LEVELBALL,:SAFARIBALL,:SPORTBALL]
when :WHITEAPRICORN
table=[:POKEBALL,:GREATBALL,:PREMIERBALL,:TIMERBALL,:FASTBALL,:SAFARIBALL,:SPORTBALL]
when :YELLOWAPRICORN
table=[:POKEBALL,:GREATBALL,:ULTRABALL,:QUICKBALL,:MOONBALL,:SAFARIBALL,:SPORTBALL]
if $game_variables[30] >= 2 and $game_variables[30] < 4
ratio=[123,247,247,247,120,8,8]
craft=items[rand(items.length)]
case craft
when :BLACKAPRICORN
table=[:POKEBALL,:GREATBALL,:DUSKBALL,:LUXURYBALL,:HEAVYBALL,:SAFARIBALL,:SPORTBALL]
when :BLUEAPRICORN
table=[:POKEBALL,:GREATBALL,:DIVEBALL,:NETBALL,:LUREBALL,:SAFARIBALL,:SPORTBALL]
when :GREENAPRICORN
table=[:POKEBALL,:GREATBALL,:ULTRABALL,:NESTBALL,:FRIENDBALL,:SAFARIBALL,:SPORTBALL]
when :PINKAPRICORN
table=[:POKEBALL,:GREATBALL,:ULTRABALL,:HEALBALL,:LOVEBALL,:SAFARIBALL,:SPORTBALL]
when :REDAPRICORN
table=[:POKEBALL,:GREATBALL,:ULTRABALL,:REPEATBALL,:LEVELBALL,:SAFARIBALL,:SPORTBALL]
when :WHITEAPRICORN
table=[:POKEBALL,:GREATBALL,:PREMIERBALL,:TIMERBALL,:FASTBALL,:SAFARIBALL,:SPORTBALL]
when :YELLOWAPRICORN
table=[:POKEBALL,:GREATBALL,:ULTRABALL,:QUICKBALL,:MOONBALL,:SAFARIBALL,:SPORTBALL]
if $game_variables[30] >= 4 and $game_variables[30] < 6
ratio=[247,123,247,247,67,67,1]
craft=items[rand(items.length)]
case craft
when :BLACKAPRICORN
table=[:HEAVYBALL,:GREATBALL,:DUSKBALL,:LUXURYBALL,:SAFARIBALL,:SPORTBALL,:MASTERBALL]
when :BLUEAPRICORN
table=[:LUREBALL,:GREATBALL,:DIVEBALL,:NETBALL,:SAFARIBALL,:SPORTBALL,:MASTERBALL]
when :GREENAPRICORN
table=[:FRIENDBALL,:GREATBALL,:ULTRABALL,:NESTBALL,:SAFARIBALL,:SPORTBALL,:MASTERBALL]
when :PINKAPRICORN
table=[:LOVEBALL,:GREATBALL,:ULTRABALL,:HEALBALL,:SAFARIBALL,:SPORTBALL,:MASTERBALL]
when :REDAPRICORN
table=[:LEVELBALL,:GREATBALL,:ULTRABALL,:REPEATBALL,:SAFARIBALL,:SPORTBALL,:MASTERBALL]
when :WHITEAPRICORN
table=[:FASTBALL,:GREATBALL,:PREMIERBALL,:TIMERBALL,:SAFARIBALL,:SPORTBALL,:MASTERBALL]
when :YELLOWAPRICORN
table=[:MOONBALL,:GREATBALL,:ULTRABALL,:QUICKBALL,:MOONBALL,:SAFARIBALL,:SPORTBALL,:MASTERBALL]
if $game_variables[30] >= 6 and $game_variables[30] < 8
ratio=[247,247,247,119,119,10,1]
craft=items[rand(items.length)]
case craft
when :BLACKAPRICORN
table=[:HEAVYBALL,:DUSKBALL,:LUXURYBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :BLUEAPRICORN
table=[:LUREBALL,:DIVEBALL,:NETBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :GREENAPRICORN
table=[:FRIENDBALL,:ULTRABALL,:NESTBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :PINKAPRICORN
table=[:LOVEBALL,:ULTRABALL,:HEALBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :REDAPRICORN
table=[:LEVELBALL,:ULTRABALL,:REPEATBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :WHITEAPRICORN
table=[:FASTBALL,:PREMIERBALL,:TIMERBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :YELLOWAPRICORN
table=[:MOONBALL,:ULTRABALL,:QUICKBALL,:MOONBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
if $game_variables[30] >= 8
ratio=[247,247,247,119,119,10,1]
craft=items[rand(items.length)]
case craft
when :BLACKAPRICORN
table=[:HEAVYBALL,:DUSKBALL,:LUXURYBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :BLUEAPRICORN
table=[:LUREBALL,:DIVEBALL,:NETBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :GREENAPRICORN
table=[:FRIENDBALL,:ULTRABALL,:NESTBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :PINKAPRICORN
table=[:LOVEBALL,:ULTRABALL,:HEALBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :REDAPRICORN
table=[:LEVELBALL,:ULTRABALL,:REPEATBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :WHITEAPRICORN
table=[:FASTBALL,:PREMIERBALL,:TIMERBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]
when :YELLOWAPRICORN
table=[:MOONBALL,:ULTRABALL,:QUICKBALL,:MOONBALL,:SAFARIBALL,:SPORTBALL,:DREAMBALL,:MASTERBALL]