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
c2a887c0
Commit
c2a887c0
authored
Sep 13, 2015
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9da61668
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
room.coffee
room.coffee
+4
-4
room.js
room.js
+4
-4
No files found.
room.coffee
View file @
c2a887c0
...
...
@@ -180,25 +180,25 @@ class Room
@
hostinfo
.
start_lp
=
start_lp
if
(
param
=
rule
.
match
/(^|,|,)(TIME|TM|TI)(\d+)(,|,|$)/
)
time_limit
=
parseInt
(
param
[
2
])
time_limit
=
parseInt
(
param
[
3
])
if
(
time_limit
<=
0
)
then
time_limit
=
180
if
(
time_limit
>=
1
and
time_limit
<=
60
)
then
time_limit
=
time_limit
*
60
if
(
time_limit
>=
999
)
then
time_limit
=
999
@
hostinfo
.
time_limit
=
time_limit
if
(
param
=
rule
.
match
/(^|,|,)(START|ST)(\d+)(,|,|$)/
)
start_hand
=
parseInt
(
param
[
2
])
start_hand
=
parseInt
(
param
[
3
])
if
(
start_hand
<=
0
)
then
start_hand
=
1
if
(
start_hand
>=
40
)
then
start_hand
=
40
@
hostinfo
.
start_hand
=
start_hand
if
(
param
=
rule
.
match
/(^|,|,)(DRAW|DR)(\d+)(,|,|$)/
)
draw_count
=
parseInt
(
param
[
2
])
draw_count
=
parseInt
(
param
[
3
])
if
(
draw_count
>=
35
)
then
draw_count
=
35
@
hostinfo
.
draw_count
=
draw_count
if
(
param
=
rule
.
match
/(^|,|,)(LFLIST|LF)(\d+)(,|,|$)/
)
lflist
=
parseInt
(
param
[
2
])
-
1
lflist
=
parseInt
(
param
[
3
])
-
1
@
hostinfo
.
lflist
=
lflist
if
(
rule
.
match
/(^|,|,)(NOLFLIST|NF)(,|,|$)/
)
...
...
room.js
View file @
c2a887c0
...
...
@@ -214,7 +214,7 @@
this
.
hostinfo
.
start_lp
=
start_lp
;
}
if
((
param
=
rule
.
match
(
/
(
^|,|,
)(
TIME|TM|TI
)(\d
+
)(
,|,|$
)
/
)))
{
time_limit
=
parseInt
(
param
[
2
]);
time_limit
=
parseInt
(
param
[
3
]);
if
(
time_limit
<=
0
)
{
time_limit
=
180
;
}
...
...
@@ -227,7 +227,7 @@
this
.
hostinfo
.
time_limit
=
time_limit
;
}
if
((
param
=
rule
.
match
(
/
(
^|,|,
)(
START|ST
)(\d
+
)(
,|,|$
)
/
)))
{
start_hand
=
parseInt
(
param
[
2
]);
start_hand
=
parseInt
(
param
[
3
]);
if
(
start_hand
<=
0
)
{
start_hand
=
1
;
}
...
...
@@ -237,14 +237,14 @@
this
.
hostinfo
.
start_hand
=
start_hand
;
}
if
((
param
=
rule
.
match
(
/
(
^|,|,
)(
DRAW|DR
)(\d
+
)(
,|,|$
)
/
)))
{
draw_count
=
parseInt
(
param
[
2
]);
draw_count
=
parseInt
(
param
[
3
]);
if
(
draw_count
>=
35
)
{
draw_count
=
35
;
}
this
.
hostinfo
.
draw_count
=
draw_count
;
}
if
((
param
=
rule
.
match
(
/
(
^|,|,
)(
LFLIST|LF
)(\d
+
)(
,|,|$
)
/
)))
{
lflist
=
parseInt
(
param
[
2
])
-
1
;
lflist
=
parseInt
(
param
[
3
])
-
1
;
this
.
hostinfo
.
lflist
=
lflist
;
}
if
(
rule
.
match
(
/
(
^|,|,
)(
NOLFLIST|NF
)(
,|,|$
)
/
))
{
...
...
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