游戏王残局简化版

Annotation For 残局函数库.lua
Login

Annotation For 残局函数库.lua

Origin for each line in 残局函数库.lua from check-in e7f204fb3d:

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