Commit a43f84af authored by mercury233's avatar mercury233

add test_mode.surrender_anytime

parent 5f586497
......@@ -154,7 +154,8 @@
"test_mode": {
"watch_public_hand": false,
"no_connect_count_limit": false,
"no_ban_player": false
"no_ban_player": false,
"surrender_anytime": false
},
"pre_util": {
"enabled": false,
......
......@@ -2459,7 +2459,7 @@ ygopro.ctos_follow 'SURRENDER', true, (buffer, info, client, server)->
return unless room
if !room.started or room.hostinfo.mode==2
return true
if room.random_type and room.turn < 3 and not client.flee_free
if room.random_type and room.turn < 3 and not client.flee_free and not settings.modules.test_mode.surrender_anytime
ygopro.stoc_send_chat(client, "${surrender_denied}", ygopro.constants.COLORS.BABYBLUE)
return true
return false
......
......@@ -3044,7 +3044,7 @@
if (!room.started || room.hostinfo.mode === 2) {
return true;
}
if (room.random_type && room.turn < 3 && !client.flee_free) {
if (room.random_type && room.turn < 3 && !client.flee_free && !settings.modules.test_mode.surrender_anytime) {
ygopro.stoc_send_chat(client, "${surrender_denied}", ygopro.constants.COLORS.BABYBLUE);
return true;
}
......
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