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
5094c73f
Commit
5094c73f
authored
Apr 29, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into tcg_random
parents
479d567c
254b36bd
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
256 additions
and
133 deletions
+256
-133
config_tourney/config.json
config_tourney/config.json
+7
-4
data/default_config.json
data/default_config.json
+10
-3
data/i18n.json
data/i18n.json
+4
-0
ygopro-server.coffee
ygopro-server.coffee
+98
-54
ygopro-server.js
ygopro-server.js
+137
-72
No files found.
config_tourney/config.json
View file @
5094c73f
{
{
"file"
:
"./config/config.json"
,
"file"
:
"./config/config.json"
,
"port"
:
1262
,
"port"
:
514
,
"version"
:
4930
,
"version"
:
4930
,
"hostinfo"
:
{
"hostinfo"
:
{
"lflist"
:
0
,
"lflist"
:
0
,
...
@@ -68,6 +68,9 @@
...
@@ -68,6 +68,9 @@
"enabled"
:
false
,
"enabled"
:
false
,
"get"
:
false
"get"
:
false
},
},
"koishi_roomlist"
:
{
"enabled"
:
false
},
"vip"
:
{
"vip"
:
{
"enabled"
:
false
,
"enabled"
:
false
,
"generate_count"
:
500
"generate_count"
:
500
...
@@ -162,7 +165,7 @@
...
@@ -162,7 +165,7 @@
"show_ip"
:
true
,
"show_ip"
:
true
,
"show_info"
:
true
,
"show_info"
:
true
,
"log_save_path"
:
"./config/"
,
"log_save_path"
:
"./config/"
,
"port"
:
1264
"port"
:
5142
},
},
"test_mode"
:
{
"test_mode"
:
{
"watch_public_hand"
:
false
,
"watch_public_hand"
:
false
,
...
@@ -285,9 +288,9 @@
...
@@ -285,9 +288,9 @@
]
]
},
},
"http"
:
{
"http"
:
{
"port"
:
1263
,
"port"
:
5141
,
"websocket_roomlist"
:
false
,
"websocket_roomlist"
:
false
,
"public_roomlist"
:
tru
e
,
"public_roomlist"
:
fals
e
,
"show_ip"
:
true
,
"show_ip"
:
true
,
"show_info"
:
true
,
"show_info"
:
true
,
"quick_death_rule"
:
2
,
"quick_death_rule"
:
2
,
...
...
data/default_config.json
View file @
5094c73f
...
@@ -13,7 +13,9 @@
...
@@ -13,7 +13,9 @@
"start_lp"
:
8000
,
"start_lp"
:
8000
,
"start_hand"
:
5
,
"start_hand"
:
5
,
"draw_count"
:
1
,
"draw_count"
:
1
,
"time_limit"
:
180
"time_limit"
:
180
,
"no_watch"
:
false
,
"auto_death"
:
false
},
},
"modules"
:
{
"modules"
:
{
"welcome"
:
"MyCard YGOPro Server"
,
"welcome"
:
"MyCard YGOPro Server"
,
...
@@ -164,7 +166,12 @@
...
@@ -164,7 +166,12 @@
"ready_time"
:
30
,
"ready_time"
:
30
,
"check_permit"
:
"https://api.mycard.moe/ygopro/match/permit"
,
"check_permit"
:
"https://api.mycard.moe/ygopro/match/permit"
,
"post_score"
:
false
,
"post_score"
:
false
,
"get_score"
:
false
"get_score"
:
false
,
"init_post"
:
{
"enabled"
:
false
,
"url"
:
"https://api.mycard.moe/ygopro/match/clear"
,
"accesskey"
:
"momobako"
}
},
},
"tournament_mode"
:
{
"tournament_mode"
:
{
"enabled"
:
false
,
"enabled"
:
false
,
...
@@ -299,7 +306,7 @@
...
@@ -299,7 +306,7 @@
"public_roomlist"
:
false
,
"public_roomlist"
:
false
,
"show_ip"
:
false
,
"show_ip"
:
false
,
"show_info"
:
true
,
"show_info"
:
true
,
"quick_death_rule"
:
false
,
"quick_death_rule"
:
2
,
"ssl"
:
{
"ssl"
:
{
"enabled"
:
false
,
"enabled"
:
false
,
"port"
:
7923
,
"port"
:
7923
,
...
...
data/i18n.json
View file @
5094c73f
...
@@ -192,6 +192,8 @@
...
@@ -192,6 +192,8 @@
"invalid_side_rule"
:
"Illegal cards are contained in your side deck."
,
"invalid_side_rule"
:
"Illegal cards are contained in your side deck."
,
"arena_wait_hint"
:
"If you opponent does not appear within 25 seconds, you may quit without any penalty."
,
"arena_wait_hint"
:
"If you opponent does not appear within 25 seconds, you may quit without any penalty."
,
"arena_wait_timeout"
:
"Your opponent did not appear, you may quit without any penalty."
,
"arena_wait_timeout"
:
"Your opponent did not appear, you may quit without any penalty."
,
"auto_death_part1"
:
"This room is an auto-extra-duel room. The Extra Duel will begin after "
,
"auto_death_part2"
:
" minutes."
,
"athletic_arena_tip"
:
"During an athletic match, a game quit behavior is regarded as a surrender."
"athletic_arena_tip"
:
"During an athletic match, a game quit behavior is regarded as a surrender."
},
},
"es-es"
:
{
"es-es"
:
{
...
@@ -531,6 +533,8 @@
...
@@ -531,6 +533,8 @@
"invalid_side_rule"
:
"副卡组中包含不允许换入副卡组的卡。"
,
"invalid_side_rule"
:
"副卡组中包含不允许换入副卡组的卡。"
,
"arena_wait_hint"
:
"若对手在25秒内不进入游戏,您退房时不会进行扣分。"
,
"arena_wait_hint"
:
"若对手在25秒内不进入游戏,您退房时不会进行扣分。"
,
"arena_wait_timeout"
:
"由于对手未能在30秒内进入游戏,此时您退出游戏不会扣分。"
,
"arena_wait_timeout"
:
"由于对手未能在30秒内进入游戏,此时您退出游戏不会扣分。"
,
"auto_death_part1"
:
"本房间为自动加时赛房间。比赛开始"
,
"auto_death_part2"
:
"分钟后,将自动进入加时赛。"
,
"athletic_arena_tip"
:
"在竞技匹配中,比赛开始前退出游戏也会视为投降。"
"athletic_arena_tip"
:
"在竞技匹配中,比赛开始前退出游戏也会视为投降。"
},
},
"ko-kr"
:
{
"ko-kr"
:
{
...
...
ygopro-server.coffee
View file @
5094c73f
This diff is collapsed.
Click to expand it.
ygopro-server.js
View file @
5094c73f
This diff is collapsed.
Click to expand it.
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