游戏王残局简化版

Annotation For script/c0.lua
Login

Annotation For script/c0.lua

Lines of script/c0.lua from check-in 77fef710b5 that are changed by the sequence of edits moving toward check-in 29959a9986:

                         1: local str = {}
                         2: local fun = {}
                         3: 
                         4: local cache_1
                         5: local cache_2
                         6: local cache_3
                         7: 
                         8: str["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
                         9: 
                        10: Debug.ReloadFieldBegin = function(str_1, str_2)
                        11: 
                        12:   if str_2 then
                        13:     if str_2 == 3 then
                        14:     str["规则"] = "大师3"
                        15:     elseif str_2 == 4 then
                        16:       end
                        17:     end
                        18:   str["Debug.ReloadFieldBegin"](str_1, str_2)
                        19:   end
                        20: 
                        21: 
                        22: 
                        23: _G["通关邀请"] = function()
                        24:   local effect_1
                        25:   effect_1 = Effect.GlobalEffect()
                        26:   effect_1:SetType(EFFECT_TYPE_FIELD
                        27:     + EFFECT_TYPE_CONTINUOUS)
                        28:   effect_1:SetCode(EVENT_DAMAGE)
                        29:   function cache_1()
                        30:     cache_1 = Duel.GetLP(1)
                        31:     if cache_1 <= 0 then
                        32:       cache_1 = true
                        33:     else
                        34:       cache_1 = false
                        35:       end
                        36:     return cache_1
                        37:     end
                        38:   effect_1:SetCondition(cache_1)
                        39:   function cache_1()
                        40:     Debug.ShowHint("残局群181175613")
                        41:     return
                        42:     end
                        43:   effect_1:SetOperation(cache_1)
                        44: 
                        45:   Duel.RegisterEffect(effect_1
                        46:     , 0)
                        47:   end
                        48: 
                        49: fun["是否效果卡"] = function(card)
                        50: 
                        51:   cache_1 = Card.IsType(card, TYPE_SPELL)
                        52:   cache_2 = Card.IsType(card, TYPE_TRAP)
                        53:   cache_3 = Card.IsType(card, TYPE_EFFECT)
                        54: 
                        55:   if cache_1
                        56:   or cache_2
                        57:   or cache_3 then
                        58:     return true
                        59:     end
                        60:   return false
                        61:   end
                        62: 
                        63: _G["开局说明"] = function()
                        64:   cache_1 = 0
                        65:   cache_1 = cache_1 + LOCATION_DECK
                        66:   cache_1 = cache_1 + LOCATION_HAND
                        67:   cache_1 = cache_1 + LOCATION_MZONE
                        68:   cache_1 = cache_1 + LOCATION_SZONE
                        69:   cache_1 = cache_1 + LOCATION_GRAVE
                        70:   cache_1 = cache_1 + LOCATION_REMOVED
                        71:   cache_1 = cache_1 + LOCATION_EXTRA
                        72:   cache_1 = cache_1 + LOCATION_OVERLAY
                        73: 
                        74:   str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,cache_1,cache_1,nil)
                        75: 
                        76:   str["开局说明"] = "效果卡:"
                        77:   str["开局说明"] = str["开局说明"] .. str["这个残局的效果卡数量"]
                        78: 
                        79:   str["开局说明"] = str["开局说明"] .. " "
                        80: 
                        81:   str["开局说明"] = str["开局说明"] .. "规则:"
                        82:   str["开局说明"] = str["开局说明"] .. str["规则"]
                        83: 
                        84:   Debug.ShowHint(str["开局说明"])
                        85:   end
                        86: