Commit 288bc2f6 authored by wind2009's avatar wind2009

Update pick rule & pool

parent 4ce1e99c
Pipeline #23729 failed with stages
in 2 minutes and 52 seconds
...@@ -295,60 +295,176 @@ function Auxiliary.StartPick(e) ...@@ -295,60 +295,176 @@ function Auxiliary.StartPick(e)
end end
end end
]]-- ]]--
for i=1,5 do
local lists={[1]=main_monster,[3]=main_spell,[4]=main_trap} -- 50% chance reverse pick
local lists_count={[1]=4,[3]=2,[4]=2} local playerReversePick=Duel.TossCoin(p,1)
if i==1 or i==2 then
lists[1]=main_plain if playerReversePick~=0 then
lists_count[1]=2 -- main deck
lists[2]=main_adv for i=1,5 do
lists_count[2]=2 local lists={[1]=main_monster,[3]=main_spell,[4]=main_trap}
local lists_count={[1]=4,[3]=2,[4]=2}
if i==1 or i==2 then
lists[1]=main_plain
lists_count[1]=2
lists[2]=main_adv
lists_count[2]=2
end
for p=0,1 do
Auxiliary.ArbitraryPick(p,4,lists,lists_count)
end
end end
for p=0,1 do -- combo pick
Auxiliary.ArbitraryPick(p,4,lists,lists_count) for t=2,0,-1 do
local reroll=t>0
if Auxiliary.SinglePick(0,main,0,nil,nil,false,false,nil,combo_pack.pack,reroll) then
break
end
end end
end for t=1,0,-1 do
local reroll=t>0
-- combo pick if Auxiliary.SinglePick(1,main,0,nil,nil,false,false,nil,combo_pack.pack,reroll) then
for t=2,0,-1 do break
local reroll=t>0 end
if Auxiliary.SinglePick(0,main,0,nil,nil,false,false,nil,combo_pack.pack,reroll) then
break
end end
end -- extra pick
for t=1,0,-1 do for tp,list in pairs(extra_sp) do
local reroll=t>0 if tp~=TYPE_FUSION then
if Auxiliary.SinglePick(1,main,0,nil,nil,false,false,nil,combo_pack.pack,reroll) then for p=0,1 do
break lists ={[1]=list}
counts={[1]=8}
lv_diff=false
if tp==TYPE_XYZ then
lists[1]=xyz_plain
counts[1]=6
lists[2]=xyz_adv
counts[2]=2
elseif tp==TYPE_SYNCHRO then
counts[1]=4
lists[2]=list
counts[2]=4
lv_diff=true
end
Auxiliary.ArbitraryPick(p,4,lists,counts,false,lv_diff)
end
end
end end
end for p=0,1 do
lists ={[1]=extra}
for tp,list in pairs(extra_sp) do counts={[1]=6}
if tp~=TYPE_FUSION then Auxiliary.ArbitraryPick(p,4,lists,counts,false,false,extra_fixed)
for p=0,1 do end
lists ={[1]=list} else
counts={[1]=8} -- extra pick
lv_diff=false for tp,list in pairs(extra_sp) do
if tp==TYPE_XYZ then if tp~=TYPE_FUSION then
lists[1]=xyz_plain for p=0,1 do
counts[1]=6 lists ={[1]=list}
lists[2]=xyz_adv counts={[1]=8}
counts[2]=2 lv_diff=false
elseif tp==TYPE_SYNCHRO then if tp==TYPE_XYZ then
counts[1]=4 lists[1]=xyz_plain
lists[2]=list counts[1]=6
counts[2]=4 lists[2]=xyz_adv
lv_diff=true counts[2]=2
elseif tp==TYPE_SYNCHRO then
counts[1]=4
lists[2]=list
counts[2]=4
lv_diff=true
end
Auxiliary.ArbitraryPick(p,4,lists,counts,false,lv_diff)
end end
Auxiliary.ArbitraryPick(p,4,lists,counts,false,lv_diff)
end end
end end
for p=0,1 do
lists ={[1]=extra}
counts={[1]=6}
Auxiliary.ArbitraryPick(p,4,lists,counts,false,false,extra_fixed)
end
-- combo pick
for t=2,0,-1 do
local reroll=t>0
if Auxiliary.SinglePick(0,main,0,nil,nil,false,false,nil,combo_pack.pack,reroll) then
break
end
end
for t=1,0,-1 do
local reroll=t>0
if Auxiliary.SinglePick(1,main,0,nil,nil,false,false,nil,combo_pack.pack,reroll) then
break
end
end
-- main deck
for i=1,5 do
local lists={[1]=main_monster,[3]=main_spell,[4]=main_trap}
local lists_count={[1]=4,[3]=2,[4]=2}
if i==1 or i==2 then
lists[1]=main_plain
lists_count[1]=2
lists[2]=main_adv
lists_count[2]=2
end
for p=0,1 do
Auxiliary.ArbitraryPick(p,4,lists,lists_count)
end
end
end end
for p=0,1 do
lists ={[1]=extra} -- for i=1,5 do
counts={[1]=6} -- local lists={[1]=main_monster,[3]=main_spell,[4]=main_trap}
Auxiliary.ArbitraryPick(p,4,lists,counts,false,false,extra_fixed) -- local lists_count={[1]=4,[3]=2,[4]=2}
end -- if i==1 or i==2 then
-- lists[1]=main_plain
-- lists_count[1]=2
-- lists[2]=main_adv
-- lists_count[2]=2
-- end
-- for p=0,1 do
-- Auxiliary.ArbitraryPick(p,4,lists,lists_count)
-- end
-- end
-- -- combo pick
-- for t=2,0,-1 do
-- local reroll=t>0
-- if Auxiliary.SinglePick(0,main,0,nil,nil,false,false,nil,combo_pack.pack,reroll) then
-- break
-- end
-- end
-- for t=1,0,-1 do
-- local reroll=t>0
-- if Auxiliary.SinglePick(1,main,0,nil,nil,false,false,nil,combo_pack.pack,reroll) then
-- break
-- end
-- end
-- for tp,list in pairs(extra_sp) do
-- if tp~=TYPE_FUSION then
-- for p=0,1 do
-- lists ={[1]=list}
-- counts={[1]=8}
-- lv_diff=false
-- if tp==TYPE_XYZ then
-- lists[1]=xyz_plain
-- counts[1]=6
-- lists[2]=xyz_adv
-- counts[2]=2
-- elseif tp==TYPE_SYNCHRO then
-- counts[1]=4
-- lists[2]=list
-- counts[2]=4
-- lv_diff=true
-- end
-- Auxiliary.ArbitraryPick(p,4,lists,counts,false,lv_diff)
-- end
-- end
-- end
-- for p=0,1 do
-- lists ={[1]=extra}
-- counts={[1]=6}
-- Auxiliary.ArbitraryPick(p,4,lists,counts,false,false,extra_fixed)
-- end
-- -- XXYYZZ Additional Picks -- -- XXYYZZ Additional Picks
-- xyz_list={91998119,91998120,91998121} -- xyz_list={91998119,91998120,91998121}
......
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