游戏王残局简化版

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

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

Lines of 残局函数库/残局函数库.lua from check-in 72d1cddb03 that are changed by the sequence of edits moving toward check-in 93595441a0:

                         1: 
                         2: local str = {}
                         3: local fun = {}
                         4: 
                         5: local cache_1
                         6: local cache_2
                         7: 
                         8: fun["通关邀请"] = function()
72d1cddb03 2023-06-26    9:   local effect_100
72d1cddb03 2023-06-26   10:   effect_100 = Effect.GlobalEffect()
72d1cddb03 2023-06-26   11:   effect_100:SetType(EFFECT_TYPE_FIELD
                        12:     + EFFECT_TYPE_CONTINUOUS)
72d1cddb03 2023-06-26   13:   effect_100:SetCode(EVENT_DAMAGE)
                        14:   function cache_1()
                        15: 
                        16:     cache_1 = Duel.GetLP(1)
                        17: 
                        18:     if cache_1 <= 0 then
                        19:       cache_1 = true
                        20:     else
                        21:       cache_1 = false
                        22:       end
                        23: 
                        24:     return cache_1
                        25:     end
72d1cddb03 2023-06-26   26:   effect_100:SetCondition(cache_1)
                        27:   function cache_1()
                        28:     Debug.ShowHint("残局群181175613")
                        29:     return
                        30:     end
72d1cddb03 2023-06-26   31:   effect_100:SetOperation(cache_1)
72d1cddb03 2023-06-26   32:   Duel.RegisterEffect(effect_100
                        33:     , 0)
                        34:   end
                        35: 
                        36: fun["开局添加手卡"] = function(str_1)
72d1cddb03 2023-06-26   37:   local effect_101
72d1cddb03 2023-06-26   38:   effect_101 = Effect.GlobalEffect()
72d1cddb03 2023-06-26   39:   effect_101:SetType(EFFECT_TYPE_FIELD
                        40:     + EFFECT_TYPE_CONTINUOUS)
72d1cddb03 2023-06-26   41:   effect_101:SetCode(EVENT_ADJUST)
72d1cddb03 2023-06-26   42:   effect_101:SetCountLimit(1)
                        43:   function cache_1()
                        44:     cache_1 = Duel.GetLP(0)
                        45:     if cache_1 > 0 then
                        46:       cache_1 = true
                        47:     else
                        48:       cache_1 = false
                        49:       end
                        50:     return cache_1
                        51:     end
72d1cddb03 2023-06-26   52:   effect_101:SetCondition(cache_1)
                        53:   function cache_1(effect_event
                        54:     , player_who_activate_the_effect)
                        55:     cache_1 = Duel.SelectMatchingCard(player_who_activate_the_effect
                        56:        , Card.IsAbleToHand
                        57:        , player_who_activate_the_effect
                        58:        , LOCATION_DECK
                        59:        , 0
                        60:        , str_1
                        61:        , str_1
                        62:        , nil)
                        63:     cache_2 = cache_1:GetCount()
                        64:     if cache_2 > 0 then
                        65:       Duel.SendtoHand(cache_1
                        66:         , nil
                        67:         , REASON_RULE)
                        68:       end
                        69:     end
72d1cddb03 2023-06-26   70:   effect_101:SetOperation(cache_1)
72d1cddb03 2023-06-26   71:   Duel.RegisterEffect(effect_101
                        72:     , 0)
                        73:   end
                        74: 
                        75: fun["通关邀请"]()
                        76: fun["开局添加手卡"](1)
                        77: