Lines of
残局函数库/残局函数库.lua
from check-in d65bfdb245
that are changed by the sequence of edits moving toward
check-in 3b85b0d9d6:
1:
2: local str = {}
3: local fun = {}
4:
5: local cache_1
6:
7: fun["通关邀请"] = function()
8: local effect_100
9: effect_100 = Effect.GlobalEffect()
10: effect_100:SetType(EFFECT_TYPE_FIELD
11: + EFFECT_TYPE_CONTINUOUS)
12: effect_100:SetCode(EVENT_DAMAGE)
13: function cache_1()
14:
15: cache_1 = Duel.GetLP(1)
16:
17: if cache_1 <= 0 then
18: cache_1 = true
19: else
20: cache_1 = false
21: end
22:
23: return cache_1
24: end
25: effect_100:SetCondition(cache_1)
26: function cache_1()
27: Debug.ShowHint("残局群181175613")
28: return
29: end
30: effect_100:SetOperation(cache_1)
31: Duel.RegisterEffect(effect_100
32: , 0)
33: end
34:
35: fun["开局添加手卡"] = function(str_1)
36: local effect_101
37: effect_101 = Effect.GlobalEffect()
38: effect_101:SetType(EFFECT_TYPE_FIELD
39: + EFFECT_TYPE_CONTINUOUS)
40: effect_101:SetCode(EVENT_ADJUST)
41: effect_101:SetCountLimit(1)
42: function cache_1()
43: cache_1 = Duel.GetLP(0)
44: if cache_1 > 0 then
45: cache_1 = true
46: else
47: cache_1 = false
48: end
49: return cache_1
50: end
51: effect_101:SetCondition(cache_1)
52: function cache_1(effect_event
53: , player_who_activate_the_effect)
54: cache_1 = Duel.SelectMatchingCard(player_who_activate_the_effect
55: , Card.IsAbleToHand
56: , player_who_activate_the_effect
57: , LOCATION_DECK
58: , 0
59: , str_1
60: , str_1
61: , nil)
62: end
63: end
64:
65: fun["通关邀请"]()