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
a17d8977
Commit
a17d8977
authored
Apr 30, 2016
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix color
parent
ccda9ea5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
constants.json
constants.json
+3
-1
ygopro-server.coffee
ygopro-server.coffee
+1
-1
ygopro-server.js
ygopro-server.js
+1
-1
No files found.
constants.json
View file @
a17d8977
...
...
@@ -249,6 +249,7 @@
"ATTRIBUTE_DEVINE"
:
64
},
"COLORS"
:
{
"LIGHTBLUE"
:
8
,
"RED"
:
11
,
"GREEN"
:
12
,
"BLUE"
:
13
,
...
...
@@ -256,7 +257,8 @@
"PINK"
:
15
,
"YELLOW"
:
16
,
"WHITE"
:
17
,
"GRAY"
:
18
"GRAY"
:
18
,
"DARKGRAY"
:
19
}
}
...
...
ygopro-server.coffee
View file @
a17d8977
...
...
@@ -756,7 +756,7 @@ wait_room_start = (room, time)->
time
-=
1
if
time
unless
time
%
5
ygopro
.
stoc_send_chat_to_room
(
room
,
"
#{
if
time
<=
9
then
' '
else
''
}#{
time
}
秒后房主若不开始游戏将被请出房间"
,
if
time
<=
9
then
ygopro
.
constants
.
COLORS
.
RED
else
ygopro
.
constants
.
COLORS
.
BABY
BLUE
)
ygopro
.
stoc_send_chat_to_room
(
room
,
"
#{
if
time
<=
9
then
' '
else
''
}#{
time
}
秒后房主若不开始游戏将被请出房间"
,
if
time
<=
9
then
ygopro
.
constants
.
COLORS
.
RED
else
ygopro
.
constants
.
COLORS
.
LIGHT
BLUE
)
setTimeout
(()
->
wait_room_start
(
room
,
time
);
return
),
1000
else
for
player
in
room
.
players
...
...
ygopro-server.js
View file @
a17d8977
...
...
@@ -864,7 +864,7 @@
time
-=
1
;
if
(
time
)
{
if
(
!
(
time
%
5
))
{
ygopro
.
stoc_send_chat_to_room
(
room
,
""
+
(
time
<=
9
?
'
'
:
''
)
+
time
+
"
秒后房主若不开始游戏将被请出房间
"
,
time
<=
9
?
ygopro
.
constants
.
COLORS
.
RED
:
ygopro
.
constants
.
COLORS
.
BABY
BLUE
);
ygopro
.
stoc_send_chat_to_room
(
room
,
""
+
(
time
<=
9
?
'
'
:
''
)
+
time
+
"
秒后房主若不开始游戏将被请出房间
"
,
time
<=
9
?
ygopro
.
constants
.
COLORS
.
RED
:
ygopro
.
constants
.
COLORS
.
LIGHT
BLUE
);
}
setTimeout
((
function
()
{
wait_room_start
(
room
,
time
);
...
...
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