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
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
nanahira
srvpro
Commits
5a5ea90b
Commit
5a5ea90b
authored
Mar 13, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
5a3a8554
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
ygopro-server.coffee
ygopro-server.coffee
+3
-1
ygopro-server.js
ygopro-server.js
+10
-1
No files found.
ygopro-server.coffee
View file @
5a5ea90b
...
...
@@ -2553,7 +2553,9 @@ wait_room_start_arena = (room)->
room
.
waiting_for_player_time
=
room
.
waiting_for_player_time
-
1
if
room
.
waiting_for_player_time
>
0
unless
room
.
waiting_for_player_time
%
5
ygopro
.
stoc_send_chat_to_room
(
room
,
"
#{
if
room
.
waiting_for_player_time
<=
9
then
' '
else
''
}#{
room
.
waiting_for_player_time
}
${kick_count_down_arena_part1}
#{
room
.
waiting_for_player
.
name
}
${kick_count_down_arena_part2}"
,
if
room
.
waiting_for_player_time
<=
9
then
ygopro
.
constants
.
COLORS
.
RED
else
ygopro
.
constants
.
COLORS
.
LIGHTBLUE
)
for
player
in
room
.
players
when
player
display_name
=
(
if
settings
.
modules
.
hide_name
and
player
!=
room
.
waiting_for_player
then
"********"
else
room
.
waiting_for_player
.
name
)
ygopro
.
stoc_send_chat
(
player
,
"
#{
if
room
.
waiting_for_player_time
<=
9
then
' '
else
''
}#{
room
.
waiting_for_player_time
}
${kick_count_down_arena_part1}
#{
display_name
}
${kick_count_down_arena_part2}"
,
if
room
.
waiting_for_player_time
<=
9
then
ygopro
.
constants
.
COLORS
.
RED
else
ygopro
.
constants
.
COLORS
.
LIGHTBLUE
)
else
ygopro
.
stoc_send_chat_to_room
(
room
,
"
#{
room
.
waiting_for_player
.
name
}
${kicked_by_system}"
,
ygopro
.
constants
.
COLORS
.
RED
)
CLIENT_kick
(
room
.
waiting_for_player
)
...
...
ygopro-server.js
View file @
5a5ea90b
...
...
@@ -3194,11 +3194,20 @@
};
wait_room_start_arena
=
function
(
room
)
{
var
display_name
,
len2
,
m
,
player
,
ref2
;
if
(
!
(
!
room
||
room
.
started
||
!
room
.
waiting_for_player
))
{
room
.
waiting_for_player_time
=
room
.
waiting_for_player_time
-
1
;
if
(
room
.
waiting_for_player_time
>
0
)
{
if
(
!
(
room
.
waiting_for_player_time
%
5
))
{
ygopro
.
stoc_send_chat_to_room
(
room
,
""
+
(
room
.
waiting_for_player_time
<=
9
?
'
'
:
''
)
+
room
.
waiting_for_player_time
+
"
${kick_count_down_arena_part1}
"
+
room
.
waiting_for_player
.
name
+
"
${kick_count_down_arena_part2}
"
,
room
.
waiting_for_player_time
<=
9
?
ygopro
.
constants
.
COLORS
.
RED
:
ygopro
.
constants
.
COLORS
.
LIGHTBLUE
);
ref2
=
room
.
players
;
for
(
m
=
0
,
len2
=
ref2
.
length
;
m
<
len2
;
m
++
)
{
player
=
ref2
[
m
];
if
(
!
(
player
))
{
continue
;
}
display_name
=
(
settings
.
modules
.
hide_name
&&
player
!==
room
.
waiting_for_player
?
"
********
"
:
room
.
waiting_for_player
.
name
);
ygopro
.
stoc_send_chat
(
player
,
""
+
(
room
.
waiting_for_player_time
<=
9
?
'
'
:
''
)
+
room
.
waiting_for_player_time
+
"
${kick_count_down_arena_part1}
"
+
display_name
+
"
${kick_count_down_arena_part2}
"
,
room
.
waiting_for_player_time
<=
9
?
ygopro
.
constants
.
COLORS
.
RED
:
ygopro
.
constants
.
COLORS
.
LIGHTBLUE
);
}
}
}
else
{
ygopro
.
stoc_send_chat_to_room
(
room
,
room
.
waiting_for_player
.
name
+
"
${kicked_by_system}
"
,
ygopro
.
constants
.
COLORS
.
RED
);
...
...
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