Lines of
script/c0.lua
from check-in d95f494908
that are changed by the sequence of edits moving toward
check-in 2ed229a931:
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: end
12:
13:
14:
15: _G["通关邀请"] = function()
16: local effect_1
17: effect_1 = Effect.GlobalEffect()
18: effect_1:SetType(EFFECT_TYPE_FIELD
19: + EFFECT_TYPE_CONTINUOUS)
20: effect_1:SetCode(EVENT_DAMAGE)
21: function cache_1()
22: cache_1 = Duel.GetLP(1)
23: if cache_1 <= 0 then
24: cache_1 = true
25: else
26: cache_1 = false
27: end
28: return cache_1
29: end
30: effect_1:SetCondition(cache_1)
31: function cache_1()
32: Debug.ShowHint("残局群181175613")
33: return
34: end
35: effect_1:SetOperation(cache_1)
36:
37: Duel.RegisterEffect(effect_1
38: , 0)
39: end
40:
41: fun["是否效果卡"] = function(card)
42: local cache_1
43: local cache_2
44: local cache_3
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: