Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
specials
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JoyJ
specials
Commits
9ee6bcc2
Commit
9ee6bcc2
authored
May 31, 2023
by
JoyJ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finish change and delete random.sh
parent
ee286b9c
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
8 additions
and
43 deletions
+8
-43
TimeTwisters/random.sh
TimeTwisters/random.sh
+0
-7
TimeTwisters/special.lua
TimeTwisters/special.lua
+1
-6
dc-srv5555/S2/special-16.5-Starwar.lua
dc-srv5555/S2/special-16.5-Starwar.lua
+1
-3
dc-srv5555/S2/special-17.3-FindHorseWithMap.lua
dc-srv5555/S2/special-17.3-FindHorseWithMap.lua
+1
-3
dc-srv5555/S2/special-18.2-TrueFalseMonkeyKing.lua
dc-srv5555/S2/special-18.2-TrueFalseMonkeyKing.lua
+1
-5
dc-srv5555/S3/special-22.5-ColorAll.lua
dc-srv5555/S3/special-22.5-ColorAll.lua
+1
-3
dc-srv5555/S3/special-22.6-PhantomGodWar.lua
dc-srv5555/S3/special-22.6-PhantomGodWar.lua
+1
-3
dc-srv5555/S3/special-23.1-TimeTwister.lua
dc-srv5555/S3/special-23.1-TimeTwister.lua
+1
-3
dc-srv5555/S3/special-26.3-YouDidaMeIHualahualaYou.lua
dc-srv5555/S3/special-26.3-YouDidaMeIHualahualaYou.lua
+1
-3
random.sh
random.sh
+0
-7
No files found.
TimeTwisters/random.sh
deleted
100644 → 0
View file @
ee286b9c
while
:
do
R
=
$(
od
-A
n
-t
d
-N
4 /dev/urandom
)
echo
$R
echo
"_G.RANDOMSEED =
$R
"
>
random.lua
read
-p
""
-t
0.1
>
/dev/null
done
TimeTwisters/special.lua
View file @
9ee6bcc2
--【请务必先pm start random.sh】
--【或者nohup random.sh也可以】
--村规决斗:时空乱流EX
--村规决斗:时空乱流EX
--双方每个回合的回合时间都会随机变化,从30~300秒不等。
--双方每个回合的回合时间都会随机变化,从30~300秒不等。
--开局时,双方将1张【所罗门的律法书】(23471572)从卡组外除外。这张卡不在除外状态的场合立刻除外。
--开局时,双方将1张【所罗门的律法书】(23471572)从卡组外除外。这张卡不在除外状态的场合立刻除外。
...
@@ -30,9 +27,7 @@ function Auxiliary.PreloadUds()
...
@@ -30,9 +27,7 @@ function Auxiliary.PreloadUds()
if
not
CUNGUI
.
InitRandomSeed
then
if
not
CUNGUI
.
InitRandomSeed
then
CUNGUI
.
InitRandomSeed
=
true
CUNGUI
.
InitRandomSeed
=
true
Duel
.
LoadScript
(
"random.lua"
)
math.random
=
Duel
.
GetRandomNumber
math.randomseed
(
_G
.
RANDOMSEED
)
for
i
=
1
,
10
do
math.random
(
1000
)
end
end
end
--adjust
--adjust
local
e2
=
Effect
.
GlobalEffect
()
local
e2
=
Effect
.
GlobalEffect
()
...
...
dc-srv5555/S2/special-16.5-Starwar.lua
View file @
9ee6bcc2
...
@@ -21,9 +21,7 @@ function CUNGUI.AdjustOperation()
...
@@ -21,9 +21,7 @@ function CUNGUI.AdjustOperation()
CUNGUI
.
INIT
=
true
CUNGUI
.
INIT
=
true
CUNGUI
.
RegisterCardRule
(
0
)
CUNGUI
.
RegisterCardRule
(
0
)
CUNGUI
.
RegisterCardRule
(
1
)
CUNGUI
.
RegisterCardRule
(
1
)
Duel
.
LoadScript
(
"random.lua"
)
math.random
=
Duel
.
GetRandomNumber
math.randomseed
(
_G
.
RANDOMSEED
)
for
i
=
1
,
10
do
math.random
(
1000
)
end
end
end
if
CUNGUI
.
RuleCard
[
0
]
and
(
not
CUNGUI
.
RuleCard
[
0
]:
IsLocation
(
LOCATION_REMOVED
)
or
not
CUNGUI
.
RuleCard
[
0
]:
IsFaceup
())
then
if
CUNGUI
.
RuleCard
[
0
]
and
(
not
CUNGUI
.
RuleCard
[
0
]:
IsLocation
(
LOCATION_REMOVED
)
or
not
CUNGUI
.
RuleCard
[
0
]:
IsFaceup
())
then
Duel
.
Remove
(
CUNGUI
.
RuleCard
[
0
],
POS_FACEUP
,
REASON_RULE
)
Duel
.
Remove
(
CUNGUI
.
RuleCard
[
0
],
POS_FACEUP
,
REASON_RULE
)
...
...
dc-srv5555/S2/special-17.3-FindHorseWithMap.lua
View file @
9ee6bcc2
...
@@ -23,9 +23,7 @@ function CUNGUI.AdjustOperation()
...
@@ -23,9 +23,7 @@ function CUNGUI.AdjustOperation()
CUNGUI
.
INIT
=
true
CUNGUI
.
INIT
=
true
CUNGUI
.
RegisterCardRule
(
0
)
CUNGUI
.
RegisterCardRule
(
0
)
CUNGUI
.
RegisterCardRule
(
1
)
CUNGUI
.
RegisterCardRule
(
1
)
Duel
.
LoadScript
(
"random.lua"
)
math.random
=
Duel
.
GetRandomNumber
math.randomseed
(
_G
.
RANDOMSEED
)
for
i
=
1
,
10
do
math.random
(
1000
)
end
end
end
if
CUNGUI
.
RuleCard
[
0
]
and
(
not
CUNGUI
.
RuleCard
[
0
]:
IsLocation
(
LOCATION_REMOVED
)
or
not
CUNGUI
.
RuleCard
[
0
]:
IsFaceup
())
then
if
CUNGUI
.
RuleCard
[
0
]
and
(
not
CUNGUI
.
RuleCard
[
0
]:
IsLocation
(
LOCATION_REMOVED
)
or
not
CUNGUI
.
RuleCard
[
0
]:
IsFaceup
())
then
Duel
.
Remove
(
CUNGUI
.
RuleCard
[
0
],
POS_FACEUP
,
REASON_RULE
)
Duel
.
Remove
(
CUNGUI
.
RuleCard
[
0
],
POS_FACEUP
,
REASON_RULE
)
...
...
dc-srv5555/S2/special-18.2-TrueFalseMonkeyKing.lua
View file @
9ee6bcc2
...
@@ -9,6 +9,7 @@ CUNGUI = {}
...
@@ -9,6 +9,7 @@ CUNGUI = {}
CUNGUI
.
RandomCard
=
{
7986397
,
8198712
,
8955148
,
9236985
,
9786492
,
9845733
,
11398951
,
14094090
,
14735698
,
16494704
,
17888577
,
18803791
,
20071842
,
21082832
,
22398665
,
23459650
,
23965037
,
27383110
,
28429121
,
30392583
,
31002402
,
31066283
,
32828635
,
33031674
,
34767865
,
34834619
,
36350300
,
37626500
,
38784726
,
39399168
,
39996157
,
41182875
,
41426869
,
43417563
,
43694075
,
44221928
,
45410988
,
45948430
,
46052429
,
46159582
,
47435107
,
51124303
,
52913738
,
54539105
,
55761792
,
58827995
,
59820352
,
60234913
,
60365591
,
60369732
,
60921537
,
62835876
,
69035382
,
72446038
,
73055622
,
76792184
,
76806714
,
77454922
,
78577570
,
79306385
,
80566312
,
80811661
,
81756897
,
81933259
,
85327820
,
86758915
,
94377247
,
94666032
,
96420087
,
97211663
}
CUNGUI
.
RandomCard
=
{
7986397
,
8198712
,
8955148
,
9236985
,
9786492
,
9845733
,
11398951
,
14094090
,
14735698
,
16494704
,
17888577
,
18803791
,
20071842
,
21082832
,
22398665
,
23459650
,
23965037
,
27383110
,
28429121
,
30392583
,
31002402
,
31066283
,
32828635
,
33031674
,
34767865
,
34834619
,
36350300
,
37626500
,
38784726
,
39399168
,
39996157
,
41182875
,
41426869
,
43417563
,
43694075
,
44221928
,
45410988
,
45948430
,
46052429
,
46159582
,
47435107
,
51124303
,
52913738
,
54539105
,
55761792
,
58827995
,
59820352
,
60234913
,
60365591
,
60369732
,
60921537
,
62835876
,
69035382
,
72446038
,
73055622
,
76792184
,
76806714
,
77454922
,
78577570
,
79306385
,
80566312
,
80811661
,
81756897
,
81933259
,
85327820
,
86758915
,
94377247
,
94666032
,
96420087
,
97211663
}
function
Auxiliary
.
PreloadUds
()
function
Auxiliary
.
PreloadUds
()
math.random
=
Duel
.
GetRandomNumber
--adjust
--adjust
local
e1
=
Effect
.
GlobalEffect
()
local
e1
=
Effect
.
GlobalEffect
()
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
e1
:
SetType
(
EFFECT_TYPE_FIELD
+
EFFECT_TYPE_CONTINUOUS
)
...
@@ -16,11 +17,6 @@ function Auxiliary.PreloadUds()
...
@@ -16,11 +17,6 @@ function Auxiliary.PreloadUds()
e1
:
SetCode
(
EVENT_ADJUST
)
e1
:
SetCode
(
EVENT_ADJUST
)
e1
:
SetOperation
(
CUNGUI
.
AdjustOperation
)
e1
:
SetOperation
(
CUNGUI
.
AdjustOperation
)
Duel
.
RegisterEffect
(
e1
,
0
)
Duel
.
RegisterEffect
(
e1
,
0
)
Duel
.
LoadScript
(
"random.lua"
)
math.randomseed
(
_G
.
RANDOMSEED
)
for
i
=
1
,
10
do
math.random
(
1000
)
end
end
end
function
CUNGUI
.
AdjustOperation
()
function
CUNGUI
.
AdjustOperation
()
if
not
CUNGUI
.
INIT
then
if
not
CUNGUI
.
INIT
then
...
...
dc-srv5555/S3/special-22.5-ColorAll.lua
View file @
9ee6bcc2
...
@@ -93,9 +93,7 @@ end
...
@@ -93,9 +93,7 @@ end
function
CUNGUI
.
AdjustOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
CUNGUI
.
AdjustOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
CUNGUI
.
INIT
then
if
not
CUNGUI
.
INIT
then
CUNGUI
.
INIT
=
true
CUNGUI
.
INIT
=
true
Duel
.
LoadScript
(
"random.lua"
)
math.random
=
Duel
.
GetRandomNumber
math.randomseed
(
_G
.
RANDOMSEED
)
for
i
=
1
,
10
do
math.random
(
1000
)
end
end
end
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
0
,
0x7f
,
0x7f
,
nil
)
local
g
=
Duel
.
GetMatchingGroup
(
nil
,
0
,
0x7f
,
0x7f
,
nil
)
g
:
ForEach
(
CUNGUI
.
RegisterMonsterSpecialEffects
)
g
:
ForEach
(
CUNGUI
.
RegisterMonsterSpecialEffects
)
...
...
dc-srv5555/S3/special-22.6-PhantomGodWar.lua
View file @
9ee6bcc2
...
@@ -22,9 +22,7 @@ function CUNGUI.AdjustOperation()
...
@@ -22,9 +22,7 @@ function CUNGUI.AdjustOperation()
CUNGUI
.
INIT
=
true
CUNGUI
.
INIT
=
true
CUNGUI
.
RegisterCardRule
(
0
)
CUNGUI
.
RegisterCardRule
(
0
)
CUNGUI
.
RegisterCardRule
(
1
)
CUNGUI
.
RegisterCardRule
(
1
)
Duel
.
LoadScript
(
"random.lua"
)
math.random
=
Duel
.
GetRandomNumber
math.randomseed
(
_G
.
RANDOMSEED
)
for
i
=
1
,
10
do
math.random
(
1000
)
end
end
end
if
CUNGUI
.
RuleCard
[
0
]
and
(
not
CUNGUI
.
RuleCard
[
0
]:
IsLocation
(
LOCATION_REMOVED
)
or
not
CUNGUI
.
RuleCard
[
0
]:
IsFaceup
())
then
if
CUNGUI
.
RuleCard
[
0
]
and
(
not
CUNGUI
.
RuleCard
[
0
]:
IsLocation
(
LOCATION_REMOVED
)
or
not
CUNGUI
.
RuleCard
[
0
]:
IsFaceup
())
then
Duel
.
Remove
(
CUNGUI
.
RuleCard
[
0
],
POS_FACEUP
,
REASON_RULE
)
Duel
.
Remove
(
CUNGUI
.
RuleCard
[
0
],
POS_FACEUP
,
REASON_RULE
)
...
...
dc-srv5555/S3/special-23.1-TimeTwister.lua
View file @
9ee6bcc2
...
@@ -7,9 +7,7 @@ CUNGUI = {}
...
@@ -7,9 +7,7 @@ CUNGUI = {}
function
Auxiliary
.
PreloadUds
()
function
Auxiliary
.
PreloadUds
()
if
not
CUNGUI
.
InitRandomSeed
then
if
not
CUNGUI
.
InitRandomSeed
then
CUNGUI
.
InitRandomSeed
=
true
CUNGUI
.
InitRandomSeed
=
true
Duel
.
LoadScript
(
"random.lua"
)
math.random
=
Duel
.
GetRandomNumber
math.randomseed
(
_G
.
RANDOMSEED
)
for
i
=
1
,
10
do
math.random
(
1000
)
end
end
end
--adjust
--adjust
local
e1
=
Effect
.
GlobalEffect
()
local
e1
=
Effect
.
GlobalEffect
()
...
...
dc-srv5555/S3/special-26.3-YouDidaMeIHualahualaYou.lua
View file @
9ee6bcc2
...
@@ -27,9 +27,7 @@ CUNGUI.RegisteredMonsters = Group.CreateGroup()
...
@@ -27,9 +27,7 @@ CUNGUI.RegisteredMonsters = Group.CreateGroup()
function
CUNGUI
.
AdjustOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
function
CUNGUI
.
AdjustOperation
(
e
,
tp
,
eg
,
ep
,
ev
,
re
,
r
,
rp
)
if
not
CUNGUI
.
RandomSeedInit
then
if
not
CUNGUI
.
RandomSeedInit
then
CUNGUI
.
RandomSeedInit
=
true
CUNGUI
.
RandomSeedInit
=
true
Duel
.
LoadScript
(
"random.lua"
)
math.random
=
Duel
.
GetRandomNumber
math.randomseed
(
_G
.
RANDOMSEED
)
for
i
=
1
,
10
do
math.random
(
1000
)
end
CUNGUI
.
Used
=
{}
CUNGUI
.
Used
=
{}
CUNGUI
.
Used
[
0
]
=
0
CUNGUI
.
Used
[
0
]
=
0
CUNGUI
.
Used
[
1
]
=
0
CUNGUI
.
Used
[
1
]
=
0
...
...
random.sh
deleted
100644 → 0
View file @
ee286b9c
while
:
do
R
=
$(
od
-A
n
-t
d
-N
4 /dev/urandom
)
echo
$R
echo
"_G.RANDOMSEED =
$R
"
>
random.lua
read
-p
""
-t
0.1
>
/dev/null
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment