游戏王残局简化版

Annotation For 残局函数库/残局函数库.lua
Login

Annotation For 残局函数库/残局函数库.lua

Lines of 残局函数库/残局函数库.lua from check-in 431822ea79 that are changed by the sequence of edits moving toward check-in 5e73ecd8d2:

                         1: 
                         2: local str = {}
                         3: local fun = {}
                         4: 
                         5: local cache_1
                         6: 
                         7: fun["通关邀请"] = function()
                         8:   local effect_100
                         9:   effect_100 = Effect.GlobalEffect()
                        10:   effect_100:SetType(EFFECT_TYPE_FIELD
                        11:     + EFFECT_TYPE_CONTINUOUS)
                        12:   effect_100:SetCode(EVENT_DAMAGE)
                        13:   function cache_1()
                        14: 
                        15:     cache_1 = Duel.GetLP(1)
                        16: 
                        17:     if cache_1 <= 0 then
                        18:       cache_1 = true
                        19:     else
                        20:       cache_1 = false
                        21:       end
                        22: 
                        23:     return cache_1
                        24:     end
                        25:   effect_100:SetCondition(cache_1)
                        26:   function cache_1()
                        27:     Debug.ShowHint("残局群181175613")
                        28:     return
                        29:     end
                        30:   effect_100:SetOperation(cache_1)
                        31:   Duel.RegisterEffect(effect_100
                        32:     , 0)
                        33:   end
                        34: 
                        35: fun["开局添加手卡"] = function()
                        36:   local effect_101
                        37:   effect_101 = Effect.GlobalEffect()
                        38:   effect_101:SetType(EFFECT_TYPE_FIELD
                        39:     + EFFECT_TYPE_CONTINUOUS)
                        40:   effect_101:SetCode(EVENT_ADJUST)
                        41:   effect_101:SetCountLimit(1)
                        42:   end
                        43: 
                        44: fun["通关邀请"]()