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