游戏王残局简化版

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

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

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

295b2babd6 2023-05-31  顽雨沉风: 
295b2babd6 2023-05-31  顽雨沉风: local str = {}
295b2babd6 2023-05-31  顽雨沉风: local fun = {}
295b2babd6 2023-05-31  顽雨沉风: 
575dd955a8 2023-06-05  顽雨沉风: local cache_1
72d1cddb03 2023-06-26  顽雨沉风: local cache_2
295b2babd6 2023-05-31  顽雨沉风: 
824b4dbb51 2023-06-18  顽雨沉风: fun["通关邀请"] = function()
93595441a0 2023-06-26  顽雨沉风:   local effect_1
93595441a0 2023-06-26  顽雨沉风:   effect_1 = Effect.GlobalEffect()
93595441a0 2023-06-26  顽雨沉风:   effect_1:SetType(EFFECT_TYPE_FIELD
295b2babd6 2023-05-31  顽雨沉风:     + EFFECT_TYPE_CONTINUOUS)
93595441a0 2023-06-26  顽雨沉风:   effect_1:SetCode(EVENT_DAMAGE)
5e52ecd559 2023-06-18  顽雨沉风:   function cache_1()
0309adcf33 2023-06-05  顽雨沉风:     cache_1 = Duel.GetLP(1)
4fcda3f2e3 2023-06-18  顽雨沉风:     if cache_1 <= 0 then
4fcda3f2e3 2023-06-18  顽雨沉风:       cache_1 = true
4fcda3f2e3 2023-06-18  顽雨沉风:     else
4fcda3f2e3 2023-06-18  顽雨沉风:       cache_1 = false
4fcda3f2e3 2023-06-18  顽雨沉风:       end
4fcda3f2e3 2023-06-18  顽雨沉风:     return cache_1
295b2babd6 2023-05-31  顽雨沉风:     end
93595441a0 2023-06-26  顽雨沉风:   effect_1:SetCondition(cache_1)
93595441a0 2023-06-26  顽雨沉风:   function cache_1()
93595441a0 2023-06-26  顽雨沉风:     Debug.ShowHint("残局群181175613")
93595441a0 2023-06-26  顽雨沉风:     return
93595441a0 2023-06-26  顽雨沉风:     end
93595441a0 2023-06-26  顽雨沉风:   effect_1:SetOperation(cache_1)
93595441a0 2023-06-26  顽雨沉风:   Duel.RegisterEffect(effect_1
93595441a0 2023-06-26  顽雨沉风:     , 0)
93595441a0 2023-06-26  顽雨沉风:   end
93595441a0 2023-06-26  顽雨沉风: 
93595441a0 2023-06-26  顽雨沉风: fun["开局添加手卡"] = function(str_1)
93595441a0 2023-06-26  顽雨沉风:   local effect_1
64e1ec616c 2023-06-26  顽雨沉风:   effect_1 = Effect["GlobalEffect"]()
64e1ec616c 2023-06-26  顽雨沉风:   --~ effect_1 = Effect.GlobalEffect()
93595441a0 2023-06-26  顽雨沉风:   effect_1:SetType(EFFECT_TYPE_FIELD
93595441a0 2023-06-26  顽雨沉风:     + EFFECT_TYPE_CONTINUOUS)
93595441a0 2023-06-26  顽雨沉风:   effect_1:SetCode(EVENT_ADJUST)
93595441a0 2023-06-26  顽雨沉风:   effect_1:SetCountLimit(1)
93595441a0 2023-06-26  顽雨沉风:   function cache_1()
1ccfd2b4b5 2023-06-26  顽雨沉风:     return true
93595441a0 2023-06-26  顽雨沉风:     end
93595441a0 2023-06-26  顽雨沉风:   effect_1:SetCondition(cache_1)
d65bfdb245 2023-06-26  顽雨沉风:   function cache_1(effect_event
d65bfdb245 2023-06-26  顽雨沉风:     , player_who_activate_the_effect)
1ccfd2b4b5 2023-06-26  顽雨沉风:     str["玩家选定的卡"] = Duel.SelectMatchingCard(player_who_activate_the_effect
d65bfdb245 2023-06-26  顽雨沉风:        , Card.IsAbleToHand
d65bfdb245 2023-06-26  顽雨沉风:        , player_who_activate_the_effect
d65bfdb245 2023-06-26  顽雨沉风:        , LOCATION_DECK
d65bfdb245 2023-06-26  顽雨沉风:        , 0
d65bfdb245 2023-06-26  顽雨沉风:        , str_1
d65bfdb245 2023-06-26  顽雨沉风:        , str_1
d65bfdb245 2023-06-26  顽雨沉风:        , nil)
1ccfd2b4b5 2023-06-26  顽雨沉风:     Duel.SendtoHand(str["玩家选定的卡"]
1ccfd2b4b5 2023-06-26  顽雨沉风:       , nil
1ccfd2b4b5 2023-06-26  顽雨沉风:       , REASON_RULE)
93595441a0 2023-06-26  顽雨沉风:     end
93595441a0 2023-06-26  顽雨沉风:   effect_1:SetOperation(cache_1)
93595441a0 2023-06-26  顽雨沉风:   Duel.RegisterEffect(effect_1
de01b7781c 2023-06-26  顽雨沉风:     , 0)
295b2babd6 2023-05-31  顽雨沉风:   end
ccc6274f8f 2023-06-18  顽雨沉风: 
9adf9af520 2023-06-25  顽雨沉风: fun["通关邀请"]()
de01b7781c 2023-06-26  顽雨沉风: fun["开局添加手卡"](1)
de01b7781c 2023-06-26  顽雨沉风: