Lines of
script/c0.lua
from check-in eab2193ecb
that are changed by the sequence of edits moving toward
check-in 6a7e89e8d0:
1: local str = {}
2: local fun = {}
eab2193ecb 2023-06-30 3:
eab2193ecb 2023-06-30 4: local cache_1
eab2193ecb 2023-06-30 5: local cache_2
eab2193ecb 2023-06-30 6: local cache_3
7:
8: str["Debug.ReloadFieldBegin"] = Debug.ReloadFieldBegin
9:
10: Debug.ReloadFieldBegin = function(str_1, str_2)
11: str["不洗牌"] = str_1 & DUEL_PSEUDO_SHUFFLE
12:
13: if str_2 then
14: if str_2 == 3 then
15: str["规则"] = "大师3"
16: elseif str_2 == 4 then
17: str["规则"] = "新大师"
18: end
19: else
20: str["规则"] = "大师2020"
21: end
22: str["Debug.ReloadFieldBegin"](str_1, str_2)
23: end
24:
25:
26:
27: _G["通关邀请"] = function()
28: local effect_1
29: effect_1 = Effect.GlobalEffect()
30: effect_1:SetType(EFFECT_TYPE_FIELD
31: + EFFECT_TYPE_CONTINUOUS)
32: effect_1:SetCode(EVENT_DAMAGE)
33: function cache_1()
34: cache_1 = Duel.GetLP(1)
35: if cache_1 <= 0 then
36: cache_1 = true
37: else
38: cache_1 = false
39: end
40: return cache_1
41: end
42: effect_1:SetCondition(cache_1)
43: function cache_1()
44: Debug.ShowHint("残局群181175613")
45: return
46: end
47: effect_1:SetOperation(cache_1)
48:
49: Duel.RegisterEffect(effect_1
50: , 0)
51: end
52:
53: fun["是否效果卡"] = function(card)
54:
55: cache_1 = Card.IsType(card, TYPE_SPELL)
56: cache_2 = Card.IsType(card, TYPE_TRAP)
57: cache_3 = Card.IsType(card, TYPE_EFFECT)
58:
59: if cache_1
60: or cache_2
61: or cache_3 then
62: return true
63: end
64: return false
65: end
66:
67: _G["开局说明"] = function()
68: cache_1 = 0
69: cache_1 = cache_1 + LOCATION_DECK
70: cache_1 = cache_1 + LOCATION_HAND
71: cache_1 = cache_1 + LOCATION_MZONE
72: cache_1 = cache_1 + LOCATION_SZONE
73: cache_1 = cache_1 + LOCATION_GRAVE
74: cache_1 = cache_1 + LOCATION_REMOVED
75: cache_1 = cache_1 + LOCATION_EXTRA
76: cache_1 = cache_1 + LOCATION_OVERLAY
77:
78: str["这个残局的效果卡数量"] = Duel.GetMatchingGroupCount(fun["是否效果卡"],0,cache_1,cache_1,nil)
79:
80: str["开局说明"] = "效果卡:"
81: str["开局说明"] = str["开局说明"] .. str["这个残局的效果卡数量"]
82:
83: str["开局说明"] = str["开局说明"] .. " "
84:
85: str["开局说明"] = str["开局说明"] .. "规则:"
86: str["开局说明"] = str["开局说明"] .. str["规则"]
87:
88: str["开局说明"] = str["开局说明"] .. "\n"
89:
90: str["开局说明"] = str["开局说明"] .. "洗牌:"
91:
92: if str["不洗牌"] then
93: str["开局说明"] = str["开局说明"] .. "伪洗牌"
94: else
95: str["开局说明"] = str["开局说明"] .. "真洗牌"
96: end
97:
98: Debug.ShowHint(str["开局说明"])
99: end
100:
101: --~ aa="3"