Index: script/c0.lua ================================================================== --- script/c0.lua +++ script/c0.lua @@ -19,13 +19,15 @@ str["二解弹窗"] = "QB:「你居然二解了,请加群告诉我怎么二解。」" str["原解弹窗"] = "残局群181175613" str["规则"] = "" -str["大师3"] = "大师3 " -str["新大师"] = "新大师 " -str["大师2020"] = "大师2020 " + +str["规则表"] = {} +str["规则表"][3] = "大师3 " +str["规则表"][4] = "新大师 " +str["规则表"][5] = "大师2020 " str["印卡"] = false str["当前印卡数"] = 1 @@ -95,33 +97,17 @@ str["无BP"] = str_1 & DUEL_ATTACK_FIRST_TURN if str_2 then --{ - if str_2 == 3 then --{ - - str["规则"] = str["大师3"] - - --} - - elseif str_2 == 4 then --{ - - str["规则"] = str["新大师"] - - --} - - elseif str_2 == 5 then --{ - - str["规则"] = str["大师2020"] - - --} - - end --} + str["规则"] = str["规则表"][str_2] + + --} else --{ - str["规则"] = str["大师2020"] + str["规则"] = str["规则表"][5] end --} fun["Debug.ReloadFieldBegin"](str_1, str_2)