From 182a8c40f84d96eef9a595cb6becee06bc10b2d2 Mon Sep 17 00:00:00 2001 From: mercury233 <me@mercury233.me> Date: Sat, 8 Dec 2018 19:56:30 +0800 Subject: [PATCH] time limit for ai room --- ygopro-server.coffee | 1 + ygopro-server.js | 1 + 2 files changed, 2 insertions(+) diff --git a/ygopro-server.coffee b/ygopro-server.coffee index 5184c2d4..e29d3c66 100644 --- a/ygopro-server.coffee +++ b/ygopro-server.coffee @@ -894,6 +894,7 @@ class Room else if name[0...3] == 'AI#' @hostinfo.rule = 2 @hostinfo.lflist = -1 + @hostinfo.time_limit = 999 else if (param = name.match /^(\d)(\d)(T|F)(T|F)(T|F)(\d+),(\d+),(\d+)/i) @hostinfo.rule = parseInt(param[1]) diff --git a/ygopro-server.js b/ygopro-server.js index c74f904d..d2f9f7da 100644 --- a/ygopro-server.js +++ b/ygopro-server.js @@ -1137,6 +1137,7 @@ } else if (name.slice(0, 3) === 'AI#') { this.hostinfo.rule = 2; this.hostinfo.lflist = -1; + this.hostinfo.time_limit = 999; } else if ((param = name.match(/^(\d)(\d)(T|F)(T|F)(T|F)(\d+),(\d+),(\d+)/i))) { this.hostinfo.rule = parseInt(param[1]); this.hostinfo.mode = parseInt(param[2]); -- 2.24.1