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
ab7b67ae
Commit
ab7b67ae
authored
Jun 22, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add reconnect room tips
parent
d35bd135
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
data/i18n.json
data/i18n.json
+4
-0
ygopro-server.coffee
ygopro-server.coffee
+2
-0
No files found.
data/i18n.json
View file @
ab7b67ae
...
...
@@ -22,6 +22,8 @@
"add_windbot_failed"
:
"AI addition failed, enter /ai again."
,
"quit_watch"
:
"quited spectating"
,
"left_game"
:
"quited game"
,
"disconnect_from_game"
:
"disconnected from the game"
,
"reconnect_to_game"
:
"reconnected to the game"
,
"server_closed"
:
"Connection terminated."
,
"server_error"
:
"Server error:"
,
"cloud_replay_no"
:
"Replay not found."
,
...
...
@@ -297,6 +299,8 @@
"add_windbot_failed"
:
"添加AI失败,可尝试输入 /ai 重新添加"
,
"quit_watch"
:
"退出了观战"
,
"left_game"
:
"离开了游戏"
,
"disconnect_from_game"
:
"断开了连接"
,
"reconnect_to_game"
:
"重新连接了"
,
"server_closed"
:
"服务器关闭了连接"
,
"server_error"
:
"服务器错误:"
,
"cloud_replay_no"
:
"没有找到录像"
,
...
...
ygopro-server.coffee
View file @
ab7b67ae
...
...
@@ -485,6 +485,7 @@ CLIENT_reconnect_register = (client, room_id, error) ->
,
settings
.
modules
.
reconnect
.
wait_time
)
dinfo
.
timeout
=
tmot
disconnect_list
[
CLIENT_get_authorize_key
(
client
)]
=
dinfo
ygopro
.
stoc_send_chat_to_room
(
room
,
"
#{
client
.
name
}
${disconnect_from_game}"
+
if
error
then
":
#{
error
}
"
else
''
)
if
settings
.
modules
.
reconnect
.
auto_surrender_after_disconnect
and
room
.
turn
and
room
.
turn
>
0
ygopro
.
ctos_send
(
client
.
server
,
'SURRENDER'
)
return
true
...
...
@@ -623,6 +624,7 @@ CLIENT_reconnect = (client) ->
client
.
pre_establish_buffers
=
[]
CLIENT_import_data
(
client
,
dinfo
.
old_client
,
room
)
CLIENT_send_reconnect_info
(
client
,
client
.
server
,
room
)
ygopro
.
stoc_send_chat_to_room
(
room
,
"
#{
client
.
name
}
${reconnect_to_game}"
)
CLIENT_reconnect_unregister
(
client
,
true
)
return
...
...
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