游戏王残局简化版

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

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

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

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