Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
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
MyCard
srvpro
Commits
fe8b969c
Commit
fe8b969c
authored
Jul 20, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add replay_mode
parent
2ccd57ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ygopro-server.coffee
ygopro-server.coffee
+2
-1
ygopro-server.js
ygopro-server.js
+3
-2
No files found.
ygopro-server.coffee
View file @
fe8b969c
...
@@ -247,6 +247,7 @@ class Room
...
@@ -247,6 +247,7 @@ class Room
start_hand
:
5
start_hand
:
5
draw_count
:
1
draw_count
:
1
time_limit
:
180
time_limit
:
180
replay_mode
:
if
settings
.
modules
.
tournament_mode
.
enabled
then
1
else
0
if
name
[
0
...
2
]
==
'M#'
if
name
[
0
...
2
]
==
'M#'
@
hostinfo
.
mode
=
1
@
hostinfo
.
mode
=
1
...
@@ -387,7 +388,7 @@ class Room
...
@@ -387,7 +388,7 @@ class Room
param
=
[
0
,
@
hostinfo
.
lflist
,
@
hostinfo
.
rule
,
@
hostinfo
.
mode
,
(
if
@
hostinfo
.
enable_priority
then
'T'
else
'F'
),
param
=
[
0
,
@
hostinfo
.
lflist
,
@
hostinfo
.
rule
,
@
hostinfo
.
mode
,
(
if
@
hostinfo
.
enable_priority
then
'T'
else
'F'
),
(
if
@
hostinfo
.
no_check_deck
then
'T'
else
'F'
),
(
if
@
hostinfo
.
no_shuffle_deck
then
'T'
else
'F'
),
(
if
@
hostinfo
.
no_check_deck
then
'T'
else
'F'
),
(
if
@
hostinfo
.
no_shuffle_deck
then
'T'
else
'F'
),
@
hostinfo
.
start_lp
,
@
hostinfo
.
start_hand
,
@
hostinfo
.
draw_count
,
@
hostinfo
.
time_limit
]
@
hostinfo
.
start_lp
,
@
hostinfo
.
start_hand
,
@
hostinfo
.
draw_count
,
@
hostinfo
.
time_limit
,
@
hostinfo
.
replay_mode
]
try
try
@
process
=
spawn
'./ygopro'
,
param
,
{
cwd
:
settings
.
ygopro_path
}
@
process
=
spawn
'./ygopro'
,
param
,
{
cwd
:
settings
.
ygopro_path
}
...
...
ygopro-server.js
View file @
fe8b969c
...
@@ -353,7 +353,8 @@
...
@@ -353,7 +353,8 @@
start_lp
:
8000
,
start_lp
:
8000
,
start_hand
:
5
,
start_hand
:
5
,
draw_count
:
1
,
draw_count
:
1
,
time_limit
:
180
time_limit
:
180
,
replay_mode
:
settings
.
modules
.
tournament_mode
.
enabled
?
1
:
0
});
});
if
(
name
.
slice
(
0
,
2
)
===
'
M#
'
)
{
if
(
name
.
slice
(
0
,
2
)
===
'
M#
'
)
{
this
.
hostinfo
.
mode
=
1
;
this
.
hostinfo
.
mode
=
1
;
...
@@ -525,7 +526,7 @@
...
@@ -525,7 +526,7 @@
this
.
hostinfo
.
enable_priority
=
true
;
this
.
hostinfo
.
enable_priority
=
true
;
}
}
}
}
param
=
[
0
,
this
.
hostinfo
.
lflist
,
this
.
hostinfo
.
rule
,
this
.
hostinfo
.
mode
,
(
this
.
hostinfo
.
enable_priority
?
'
T
'
:
'
F
'
),
(
this
.
hostinfo
.
no_check_deck
?
'
T
'
:
'
F
'
),
(
this
.
hostinfo
.
no_shuffle_deck
?
'
T
'
:
'
F
'
),
this
.
hostinfo
.
start_lp
,
this
.
hostinfo
.
start_hand
,
this
.
hostinfo
.
draw_count
,
this
.
hostinfo
.
time_limit
];
param
=
[
0
,
this
.
hostinfo
.
lflist
,
this
.
hostinfo
.
rule
,
this
.
hostinfo
.
mode
,
(
this
.
hostinfo
.
enable_priority
?
'
T
'
:
'
F
'
),
(
this
.
hostinfo
.
no_check_deck
?
'
T
'
:
'
F
'
),
(
this
.
hostinfo
.
no_shuffle_deck
?
'
T
'
:
'
F
'
),
this
.
hostinfo
.
start_lp
,
this
.
hostinfo
.
start_hand
,
this
.
hostinfo
.
draw_count
,
this
.
hostinfo
.
time_limit
,
this
.
hostinfo
.
replay_mode
];
try
{
try
{
this
.
process
=
spawn
(
'
./ygopro
'
,
param
,
{
this
.
process
=
spawn
(
'
./ygopro
'
,
param
,
{
cwd
:
settings
.
ygopro_path
cwd
:
settings
.
ygopro_path
...
...
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