Lines of
script/c0.lua
from check-in 2ed229a931
that are changed by the sequence of edits moving toward
check-in bf6cc894c2:
1: local str = {}
2: local fun = {}
3:
4: local cache_1
5: local cache_2
6: local cache_3
7:
8: str["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
9:
10: Debug.ReloadFieldBegin = function(str_1, str_2)
11: str["Debug.ReloadFieldBegin"](str_1, str_2)
12: end
13:
14:
15:
16: _G["通关邀请"] = function()
17: local effect_1
18: effect_1 = Effect.GlobalEffect()
19: effect_1:SetType(EFFECT_TYPE_FIELD
20: + EFFECT_TYPE_CONTINUOUS)
21: effect_1:SetCode(EVENT_DAMAGE)
22: function cache_1()
23: cache_1 = Duel.GetLP(1)
24: if cache_1 <= 0 then
25: cache_1 = true
26: else
27: cache_1 = false
28: end
29: return cache_1
30: end
31: effect_1:SetCondition(cache_1)
32: function cache_1()
33: Debug.ShowHint("残局群181175613")
34: return
35: end
36: effect_1:SetOperation(cache_1)
37:
38: Duel.RegisterEffect(effect_1
39: , 0)
40: end
41:
42: fun["是否效果卡"] = function(card)
2ed229a931 2023-06-30 43: local cache_1
2ed229a931 2023-06-30 44: local cache_2
2ed229a931 2023-06-30 45: local cache_3
46:
47: cache_1 = Card.IsType(card, TYPE_SPELL)
48: cache_2 = Card.IsType(card, TYPE_TRAP)
49: cache_3 = Card.IsType(card, TYPE_EFFECT)
50:
51: if cache_1
52: or cache_2
53: or cache_3 then
54: return true
55: end
56: return false
57: end
58:
59: _G["开局说明"] = function()
60: cache_1 = 0
61: cache_1 = cache_1 + LOCATION_DECK
62: cache_1 = cache_1 + LOCATION_HAND
63: cache_1 = cache_1 + LOCATION_MZONE
64: cache_1 = cache_1 + LOCATION_SZONE
65: cache_1 = cache_1 + LOCATION_GRAVE
66: cache_1 = cache_1 + LOCATION_REMOVED
67: cache_1 = cache_1 + LOCATION_EXTRA
68: cache_1 = cache_1 + LOCATION_OVERLAY
69:
70: str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,cache_1,cache_1,nil)
71:
72: str["开局说明"] = "效果卡:"
73: str["开局说明"] = str["开局说明"] .. str["这个残局的效果卡数量"]
74:
75: Debug.ShowHint(str["开局说明"])
76: end
77: