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
ff9b1069
Commit
ff9b1069
authored
Jul 29, 2019
by
nanahira
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mc'
parents
02496814
e770e9de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
2 deletions
+14
-2
roomlist.coffee
roomlist.coffee
+1
-1
roomlist.js
roomlist.js
+1
-1
ygopro-server.coffee
ygopro-server.coffee
+5
-0
ygopro-server.js
ygopro-server.js
+7
-0
No files found.
roomlist.coffee
View file @
ff9b1069
...
...
@@ -9,7 +9,7 @@ room_data = (room)->
title
:
room
.
title
,
user
:
{
username
:
room
.
username
}
users
:
({
username
:
client
.
name
,
position
:
client
.
pos
}
for
client
in
room
.
players
),
options
:
room
.
hostinfo
,
options
:
room
.
get_old_hostinfo
(),
# Should be updated when MyCard client updates
arena
:
settings
.
modules
.
arena_mode
.
enabled
&&
room
.
arena
&&
settings
.
modules
.
arena_mode
.
mode
init
=
(
http_server
,
ROOM_all
)
->
...
...
roomlist.js
View file @
ff9b1069
...
...
@@ -31,7 +31,7 @@
}
return
results
;
})(),
options
:
room
.
hostinfo
,
options
:
room
.
get_old_hostinfo
()
,
arena
:
settings
.
modules
.
arena_mode
.
enabled
&&
room
.
arena
&&
settings
.
modules
.
arena_mode
.
mode
};
};
...
...
ygopro-server.coffee
View file @
ff9b1069
...
...
@@ -1453,6 +1453,11 @@ class Room
challonge_duel_log
.
scoresCsv
=
"0-0"
return
challonge_duel_log
get_old_hostinfo
:
()
->
# Just for supporting websocket roomlist in old MyCard client....
ret
=
_
.
clone
(
@
hostinfo
)
ret
.
enable_priority
=
(
@
hostinfo
.
duel_rule
==
4
)
return
ret
send_replays
:
()
->
return
false
unless
settings
.
modules
.
replay_delay
and
@
replays
.
length
and
@
hostinfo
.
mode
==
1
for
player
in
@
players
...
...
ygopro-server.js
View file @
ff9b1069
...
...
@@ -1896,6 +1896,13 @@
return challonge_duel_log;
};
Room.prototype.get_old_hostinfo = function() {
var ret;
ret = _.clone(this.hostinfo);
ret.enable_priority = this.hostinfo.duel_rule === 4;
return ret;
};
Room.prototype.send_replays = function() {
var len2, len3, m, n, player, ref3, ref4;
if (!(settings.modules.replay_delay && this.replays.length && this.hostinfo.mode === 1)) {
...
...
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