游戏王残局简化版

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

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

Lines of 残局函数库/残局函数库.lua from check-in 64e1ec616c that are changed by the sequence of edits moving toward check-in 1759c92880:

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