Commit 6c019050 authored by nanahira's avatar nanahira

update xyz pick

parent c7b8764b
...@@ -18,6 +18,9 @@ local extra_sp={ ...@@ -18,6 +18,9 @@ local extra_sp={
[TYPE_LINK]={[0]={},[1]={}}, [TYPE_LINK]={[0]={},[1]={}},
} }
local xyz_plain={[0]={},[1]={}}
local xyz_adv={[0]={},[1]={}}
function Auxiliary.SplitData(inputstr) function Auxiliary.SplitData(inputstr)
local t={} local t={}
for str in string.gmatch(inputstr,"([^|]+)") do for str in string.gmatch(inputstr,"([^|]+)") do
...@@ -44,6 +47,13 @@ function Auxiliary.LoadDB(p,pool) ...@@ -44,6 +47,13 @@ function Auxiliary.LoadDB(p,pool)
table.insert(list[p],code) table.insert(list[p],code)
end end
end end
if (cat & TYPE_XYZ)>0 then
if lv>4 then
table.insert(xyz_adv[p],code)
else
table.insert(xyz_plain[p],code)
end
end
elseif (cat & TYPE_TOKEN)==0 then elseif (cat & TYPE_TOKEN)==0 then
if (cat & TYPE_MONSTER)>0 then if (cat & TYPE_MONSTER)>0 then
table.insert(main_monster[p],code) table.insert(main_monster[p],code)
...@@ -176,7 +186,11 @@ function Auxiliary.StartPick(e) ...@@ -176,7 +186,11 @@ function Auxiliary.StartPick(e)
for tp,list in pairs(extra_sp) do for tp,list in pairs(extra_sp) do
if tp~=TYPE_FUSION then if tp~=TYPE_FUSION then
for p=0,1 do for p=0,1 do
Auxiliary.SinglePick(p,list,4,nil,nil,false) if tp==TYPE_XYZ then
Auxiliary.SinglePick(p,xyz_plain,3,xyz_adv,1,false)
else
Auxiliary.SinglePick(p,list,4,nil,nil,false)
end
end end
end end
end end
......
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