Commit 9fbf0055 authored by nanahira's avatar nanahira

Merge branch 'master' into tcg_random

parents 0ff9433b 35c7cea8
...@@ -597,10 +597,10 @@ init = () -> ...@@ -597,10 +597,10 @@ init = () ->
try try
await axios.post(settings.modules.random_duel.post_match_scores, { await axios.post(settings.modules.random_duel.post_match_scores, {
headers: { 'content-type': 'application/x-www-form-urlencoded' }, headers: { 'content-type': 'application/x-www-form-urlencoded' },
responseType: "json",
data: qs.stringify({ data: qs.stringify({
accesskey: settings.modules.random_duel.post_match_accesskey, accesskey: settings.modules.random_duel.post_match_accesskey,
rank: JSON.stringify(scores) rank: JSON.stringify(scores)
responseType: "json"
}) })
}) })
catch e catch e
...@@ -2281,8 +2281,8 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)-> ...@@ -2281,8 +2281,8 @@ ygopro.ctos_follow 'JOIN_GAME', true, (buffer, info, client, server, datas)->
return return
room.private = true room.private = true
room.arena = settings.modules.arena_mode.mode room.arena = settings.modules.arena_mode.mode
if room.arena == "athletic"
room.max_player = 2 room.max_player = 2
if room.arena == "athletic"
room.welcome = "${athletic_arena_tip}" room.welcome = "${athletic_arena_tip}"
when 5 when 5
title = info.pass.slice(8).replace(String.fromCharCode(0xFEFF), ' ') title = info.pass.slice(8).replace(String.fromCharCode(0xFEFF), ' ')
......
...@@ -760,10 +760,10 @@ ...@@ -760,10 +760,10 @@
headers: { headers: {
'content-type': 'application/x-www-form-urlencoded' 'content-type': 'application/x-www-form-urlencoded'
}, },
responseType: "json",
data: qs.stringify({ data: qs.stringify({
accesskey: settings.modules.random_duel.post_match_accesskey, accesskey: settings.modules.random_duel.post_match_accesskey,
rank: JSON.stringify(scores), rank: JSON.stringify(scores)
responseType: "json"
}) })
}); });
} catch (error1) { } catch (error1) {
...@@ -3020,8 +3020,8 @@ ...@@ -3020,8 +3020,8 @@
} }
room.private = true; room.private = true;
room.arena = settings.modules.arena_mode.mode; room.arena = settings.modules.arena_mode.mode;
if (room.arena === "athletic") {
room.max_player = 2; room.max_player = 2;
if (room.arena === "athletic") {
room.welcome = "${athletic_arena_tip}"; room.welcome = "${athletic_arena_tip}";
} }
} }
......
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