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