Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -29,27 +29,33 @@ local cache_6 local cache_7 local cache_8 local cache_9 local _ -fun["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin -Debug.ReloadFieldBegin = function(u1, u2) - str["不洗牌"] = u1 & DUEL_PSEUDO_SHUFFLE - str["无BP"] = u1 & DUEL_ATTACK_FIRST_TURN - str["无AI"] = u1 & DUEL_SIMPLE_AI - str["规则表"] = { - [3] = "大师3 ", - [4] = "新大师 ", - [5] = "大师2020 ", - } - if u2 then - str["规则"] = str["规则表"][u2] - else - str["规则"] = str["规则表"][5] - end - fun["Debug.ReloadFieldBegin"](u1, u2) -end +do + local h1 + --~ 则对 + h1 = { + [3] = "大师3 " + , [4] = "新大师 " + , [5] = "大师2020 " + } + s["Debug.ReloadFieldBegin"] = _G.Debug.ReloadFieldBegin + --~ 模 + --~ 则数 + function _G.Debug.ReloadFieldBegin(u1, u2) + s["洗牌"] = u1 & DUEL_PSEUDO_SHUFFLE + s["战阶"] = u1 & DUEL_ATTACK_FIRST_TURN + s["机智"] = u1 & DUEL_SIMPLE_AI + if u2 then + s["则"] = h1[u2] + else + s["则"] = h1[5] + end + s["Debug.ReloadFieldBegin"](u1, u2) + end + end function s["开局洗卡抽卡"](u1) local h1, h2 s["开局洗卡抽卡之数"] = u1 --~ 效果 h1 = Effect.GlobalEffect() @@ -155,15 +161,18 @@ local cache_6 local cache_7 local cache_8 local cache_9 local _ -fun["Debug.ReloadFieldEnd"] = Debug.ReloadFieldEnd -Debug.ReloadFieldEnd = function(u1) - fun["Debug.ReloadFieldEnd"]() - if u1 then - s["开局洗卡抽卡"](u1) +do + s["Debug.ReloadFieldEnd"] = _G.Debug.ReloadFieldEnd + --~ 开局洗卡抽卡之数 + function _G.Debug.ReloadFieldEnd(u1) + s["Debug.ReloadFieldEnd"]() + if u1 then + s["开局洗卡抽卡"](u1) + end end end fun["二_印卡"] = function(u1, u2, u3) u3 = u3 or u2 Debug.ShowHint( @@ -232,23 +241,27 @@ if s["开局洗卡抽卡之数"] then h1 = h1 .. "抽" .. s["开局洗卡抽卡之数"] .. "卡 " end Debug.ShowHint(h1) end -fun["aux.BeginPuzzle"] = aux.BeginPuzzle -aux.BeginPuzzle = function(u1, u2) - fun["aux.BeginPuzzle"]() - if u1 then - s["开局选卡入手"](u1) - end - if u2 then - s["禁格"](u2) - end - fun["二_开局说明"]() - s["通关之邀"]() -end +do + s["aux.BeginPuzzle"] = _G.aux.BeginPuzzle + --~ 开局选卡入手之数 + --~ 禁格之数 + function _G.aux.BeginPuzzle(u1, u2) + s["aux.BeginPuzzle"]() + if u1 then + s["开局选卡入手"](u1) + end + if u2 then + s["禁格"](u2) + end + fun["二_开局说明"]() + s["通关之邀"]() + end + end --兼容层------------------------------- fun["印卡"] = fun["二_印卡"] fun["开局添加手卡"] = s["开局选卡入手"] fun["是否效果卡"] = fun["一_是否效果卡"] fun["禁格"] = s["禁格"] fun["随机抽卡"] = s["开局洗卡抽卡"]