Commit ad986788 authored by Tachibana's avatar Tachibana

ndyd

parent 89c31de3
No preview for this file type
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
--2pick utilities --2pick utilities
c13959996={}
Duel.LoadScript("c13959996.lua")
local cc=13959997 local cc=13959997
local this=_G["c"..cc] local this=_G["c"..cc]
...@@ -177,12 +179,8 @@ function this.initSet(s) ...@@ -177,12 +179,8 @@ function this.initSet(s)
s.add=this.add s.add=this.add
s.del=this.del s.del=this.del
end end
function this.loadCardList(useBanList,ignoreBlackList,clCode) function this.loadCardList(useBanList,ignoreBlackList)
if not _G["c"..clCode] then local cl=c13959996
_G["c"..clCode]={}
Duel.LoadScript("c"..clCode..".lua")
end
local cl=_G["c"..clCode]
local mainList=this.toList(this.loadSet(cl.Main)) local mainList=this.toList(this.loadSet(cl.Main))
local extraList=this.toList(this.loadSet(cl.Extra)) local extraList=this.toList(this.loadSet(cl.Extra))
local ml={} local ml={}
......
...@@ -11,7 +11,6 @@ this.extracount=20 ...@@ -11,7 +11,6 @@ this.extracount=20
this.useBanList=true this.useBanList=true
this.skillEnabled=false this.skillEnabled=false
this.CardList={} this.CardList={}
this.clCode=13959996
function this.initial_effect(c) function this.initial_effect(c)
if not this.gc then if not this.gc then
...@@ -174,9 +173,6 @@ function this.op(e,tp) ...@@ -174,9 +173,6 @@ function this.op(e,tp)
this.extracount=Duel.AnnounceLevel(0,1,10)*10 this.extracount=Duel.AnnounceLevel(0,1,10)*10
end end
this.useBanList=Duel.SelectYesNo(0,aux.Stringid(13959997,2)) this.useBanList=Duel.SelectYesNo(0,aux.Stringid(13959997,2))
if Duel.SelectYesNo(0,aux.Stringid(13959997,6)) then
this.clCode=({13959996,13959994})[Duel.SelectOption(0,aux.Stringid(13959997,7),aux.Stringid(13959997,8))+1]
end
end end
this.option=Duel.SelectOption(0,aux.Stringid(cc,0),aux.Stringid(cc,1),aux.Stringid(cc,6),aux.Stringid(cc,7),aux.Stringid(cc,11),aux.Stringid(cc,10),aux.Stringid(13959997,4),aux.Stringid(13959997,5)) this.option=Duel.SelectOption(0,aux.Stringid(cc,0),aux.Stringid(cc,1),aux.Stringid(cc,6),aux.Stringid(cc,7),aux.Stringid(cc,11),aux.Stringid(cc,10),aux.Stringid(13959997,4),aux.Stringid(13959997,5))
local n=0 local n=0
...@@ -248,7 +244,7 @@ end ...@@ -248,7 +244,7 @@ end
function this.ccGen(from,count) function this.ccGen(from,count)
if not this.CardList.Main then if not this.CardList.Main then
local ml,el,mat,eat=c13959997.loadCardList(this.useBanList,false,this.clCode) local ml,el,mat,eat=c13959997.loadCardList(this.useBanList)
this.CardList.Main=ml this.CardList.Main=ml
this.CardList.Extra=el this.CardList.Extra=el
this.CardList.MainAliasTable=mat this.CardList.MainAliasTable=mat
...@@ -715,7 +711,7 @@ end ...@@ -715,7 +711,7 @@ end
function this.picrandom(g) function this.picrandom(g)
if not this.CardList.Main then if not this.CardList.Main then
local ml,el,mat,eat=c13959997.loadCardList(this.useBanList,false,this.clCode) local ml,el,mat,eat=c13959997.loadCardList(this.useBanList)
this.CardList.Main=ml this.CardList.Main=ml
this.CardList.Extra=el this.CardList.Extra=el
this.CardList.MainAliasTable=mat this.CardList.MainAliasTable=mat
......
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