Commit a58cd559 authored by wind2009's avatar wind2009 Committed by GitHub

seperate m/s/t

parent 6598eccf
...@@ -4,6 +4,10 @@ io=require("io") ...@@ -4,6 +4,10 @@ io=require("io")
local main={} local main={}
local extra={} local extra={}
local main_monster={}
local main_spell={}
local main_trap={}
local forbidden_check={} local forbidden_check={}
local limited_check={} local limited_check={}
local semi_limited_check={} local semi_limited_check={}
...@@ -47,6 +51,13 @@ function Auxiliary.LoadDB() ...@@ -47,6 +51,13 @@ function Auxiliary.LoadDB()
if (cat & TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK)>0 then if (cat & TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK)>0 then
table.insert(extra,code) table.insert(extra,code)
elseif (cat & TYPE_TOKEN)==0 then elseif (cat & TYPE_TOKEN)==0 then
if (cat & TYPE_MONSTER)>0 then
table.insert(main_monster,code)
elseif (cat & TYPE_SPELL)>0 then
table.insert(main_spell,code)
elseif (cat & TYPE_TRAP)>0 then
table.insert(main_trap,code)
end
table.insert(main,code) table.insert(main,code)
if forbidden_check[code] then if forbidden_check[code] then
table.insert(forbidden,code) table.insert(forbidden,code)
...@@ -94,9 +105,18 @@ function Auxiliary.StartPick(e) ...@@ -94,9 +105,18 @@ function Auxiliary.StartPick(e)
list=forbidden list=forbidden
count=1 count=1
end]] end]]
for p=0,1 do
--[[for p=0,1 do
Auxiliary.SinglePick(p,main,4) Auxiliary.SinglePick(p,main,4)
end]]
local list=main_monster
if i==7 or i==8 then
list=main_spell
elseif i==9 or i==10 then
list=main_trap
end end
Auxiliary.SinglePick(p,list,4)
end end
for i=1,5 do for i=1,5 do
for p=0,1 do for p=0,1 do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment