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