Commit 931c0dfb authored by nanahira's avatar nanahira

fix custom room hostinfo

parent 7d83b582
......@@ -2078,8 +2078,8 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
opt2 = buffer.readUInt16LE(3)
opt3 = buffer.readUInt8(5)
options = {
lflist: 0
time_limit: 180
lflist: settings.hostinfo.lflist
time_limit: settings.hostinfo.time_limit
rule: (opt1 >> 5) & 3
mode: (opt1 >> 3) & 3
duel_rule: (if !!((opt1 >> 2) & 1) then 4 else 5)
......@@ -2088,8 +2088,8 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server, datas)->
start_lp: opt2
start_hand: opt3 >> 4
draw_count: opt3 & 0xF
no_watch: false
auto_death: false
no_watch: settings.hostinfo.no_watch
auto_death: settings.hostinfo.auto_death
}
options.lflist = _.findIndex lflists, (list)-> ((options.rule == 1) == list.tcg) and list.date.isBefore()
room_title = info.pass.slice(8).replace(String.fromCharCode(0xFEFF), ' ')
......
......@@ -2744,8 +2744,8 @@
opt2 = buffer.readUInt16LE(3);
opt3 = buffer.readUInt8(5);
options = {
lflist: 0,
time_limit: 180,
lflist: settings.hostinfo.lflist,
time_limit: settings.hostinfo.time_limit,
rule: (opt1 >> 5) & 3,
mode: (opt1 >> 3) & 3,
duel_rule: (!!((opt1 >> 2) & 1) ? 4 : 5),
......@@ -2754,8 +2754,8 @@
start_lp: opt2,
start_hand: opt3 >> 4,
draw_count: opt3 & 0xF,
no_watch: false,
auto_death: false
no_watch: settings.hostinfo.no_watch,
auto_death: settings.hostinfo.auto_death
};
options.lflist = _.findIndex(lflists, function(list) {
return ((options.rule === 1) === list.tcg) && list.date.isBefore();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment