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
6cb425f1
Commit
6cb425f1
authored
Sep 12, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add /refresh
parent
4bc11ec0
Pipeline
#5535
passed with stages
in 59 minutes and 22 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
data/i18n.json
data/i18n.json
+6
-0
ygopro-server.coffee
ygopro-server.coffee
+10
-0
ygopro-server.js
ygopro-server.js
+12
-0
No files found.
data/i18n.json
View file @
6cb425f1
...
...
@@ -85,6 +85,7 @@
"kick_count_down_arena_part2"
:
" will be evicted for not getting ready or starting the game."
,
"chat_order_main"
:
"Mycard YGOPro Server function list"
,
"chat_order_help"
:
"/help show this list"
,
"chat_order_refresh"
:
"/refresh refresh field when stuck"
,
"chat_order_roomname"
:
"/roomname show room name"
,
"chat_order_windbot"
:
"/ai to add an AI, /ai name to add selected AI "
,
"chat_order_tip"
:
"/tip show a tip"
,
...
...
@@ -170,6 +171,8 @@
"auto_death_part2"
:
" minutes."
,
"athletic_arena_tip"
:
"During an athletic match, a game quit behavior is regarded as a surrender."
,
"windbot_disable_random_room"
:
"By adding the AI, this random game won't get any new player unless they enter the room name:"
,
"refresh_success"
:
"Refresh field succeeded."
,
"refresh_failed"
:
"Refresh field failed."
,
"using_athletic_deck"
:
" is using a competitive deck."
},
"es-es"
:
{
...
...
@@ -404,6 +407,7 @@
"kick_count_down_arena_part2"
:
"若不准备或开始游戏将视为投降"
,
"chat_order_main"
:
"Mycard YGOPro Server 指令帮助"
,
"chat_order_help"
:
"/help 显示这个帮助信息"
,
"chat_order_refresh"
:
"/refresh 刷新场面信息,卡顿时用"
,
"chat_order_roomname"
:
"/roomname 显示当前房间的名字"
,
"chat_order_windbot"
:
"/ai 添加一个AI,/ai 角色名 可指定添加的角色"
,
"chat_order_tip"
:
"/tip 显示一条提示"
,
...
...
@@ -489,6 +493,8 @@
"auto_death_part2"
:
"分钟后,将自动进入加时赛。"
,
"athletic_arena_tip"
:
"在竞技匹配中,比赛开始前退出游戏也会视为投降。"
,
"windbot_disable_random_room"
:
"因为添加了AI,本随机对战房间将只能通过房间名加入:"
,
"refresh_success"
:
"刷新场面成功。"
,
"refresh_fail"
:
"刷新场面失败。"
,
"using_athletic_deck"
:
" 正在使用竞技卡组。"
},
"ko-kr"
:
{
...
...
ygopro-server.coffee
View file @
6cb425f1
...
...
@@ -3150,6 +3150,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server, datas)->
when
'/help'
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_main}"
)
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_help}"
)
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_refresh}"
)
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_roomname}"
)
if
!
settings
.
modules
.
mycard
.
enabled
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_windbot}"
)
if
settings
.
modules
.
windbot
.
enabled
ygopro
.
stoc_send_chat
(
client
,
"${chat_order_tip}"
)
if
settings
.
modules
.
tips
.
enabled
...
...
@@ -3177,6 +3178,15 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server, datas)->
when
'/roomname'
ygopro
.
stoc_send_chat
(
client
,
"${room_name} "
+
room
.
name
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
if
room
when
'/refresh'
if
room
.
duel_stage
==
ygopro
.
constants
.
DUEL_STAGE
.
DUELING
and
client
.
last_game_msg
and
client
.
last_game_msg_title
!=
'WAITING'
if
client
.
last_hint_msg
ygopro
.
stoc_send
(
client
,
'GAME_MSG'
,
client
.
last_hint_msg
)
ygopro
.
stoc_send
(
client
,
'GAME_MSG'
,
client
.
last_game_msg
)
ygopro
.
stoc_send_chat
(
client
,
'${refresh_success}'
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
)
else
ygopro
.
stoc_send_chat
(
client
,
'${refresh_fail}'
,
ygopro
.
constants
.
COLORS
.
RED
)
when
'/color'
if
settings
.
modules
.
chat_color
.
enabled
...
...
ygopro-server.js
View file @
6cb425f1
...
...
@@ -4174,6 +4174,7 @@
case
'
/help
'
:
ygopro
.
stoc_send_chat
(
client
,
"
${chat_order_main}
"
);
ygopro
.
stoc_send_chat
(
client
,
"
${chat_order_help}
"
);
ygopro
.
stoc_send_chat
(
client
,
"
${chat_order_refresh}
"
);
if
(
!
settings
.
modules
.
mycard
.
enabled
)
{
ygopro
.
stoc_send_chat
(
client
,
"
${chat_order_roomname}
"
);
}
...
...
@@ -4222,6 +4223,17 @@
ygopro
.
stoc_send_chat
(
client
,
"
${room_name}
"
+
room
.
name
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
}
break
;
case
'
/refresh
'
:
if
(
room
.
duel_stage
===
ygopro
.
constants
.
DUEL_STAGE
.
DUELING
&&
client
.
last_game_msg
&&
client
.
last_game_msg_title
!==
'
WAITING
'
)
{
if
(
client
.
last_hint_msg
)
{
ygopro
.
stoc_send
(
client
,
'
GAME_MSG
'
,
client
.
last_hint_msg
);
}
ygopro
.
stoc_send
(
client
,
'
GAME_MSG
'
,
client
.
last_game_msg
);
ygopro
.
stoc_send_chat
(
client
,
'
${refresh_success}
'
,
ygopro
.
constants
.
COLORS
.
BABYBLUE
);
}
else
{
ygopro
.
stoc_send_chat
(
client
,
'
${refresh_fail}
'
,
ygopro
.
constants
.
COLORS
.
RED
);
}
break
;
case
'
/color
'
:
if
(
settings
.
modules
.
chat_color
.
enabled
)
{
cip
=
CLIENT_get_authorize_key
(
client
);
...
...
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