From 75d0731ee1186eae4df443f517d295a76a34aa84 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 11 May 2019 12:48:30 +0900 Subject: [PATCH] :v: --- src/modules/maze/gen-maze.ts | 1 + src/modules/maze/index.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/modules/maze/gen-maze.ts b/src/modules/maze/gen-maze.ts index a4d220f..9edaf01 100644 --- a/src/modules/maze/gen-maze.ts +++ b/src/modules/maze/gen-maze.ts @@ -85,6 +85,7 @@ export function genMaze(seed, complexity?) { if (complexity === 'easy') mazeSize = 10 + rand(12); if (complexity === 'hard') mazeSize = 20 + rand(15); if (complexity === 'veryHard') mazeSize = 35 + rand(15); + if (complexity === 'ai') mazeSize = 100; } else { mazeSize = 11 + rand(21); } diff --git a/src/modules/maze/index.ts b/src/modules/maze/index.ts index 5b86fa9..7404bed 100644 --- a/src/modules/maze/index.ts +++ b/src/modules/maze/index.ts @@ -72,6 +72,7 @@ export default class extends Module { if (msg.includes(['簡単', 'かんたん', '易しい', 'やさしい', '小さい', 'ちいさい'])) size = 'easy'; if (msg.includes(['難しい', 'むずかしい', '複雑な', '大きい', 'おおきい'])) size = 'hard'; if (msg.includes(['死', '鬼', '地獄'])) size = 'veryHard'; + if (msg.includes(['藍']) && msg.includes(['本気'])) size = 'ai'; this.log('Maze requested'); setTimeout(async () => { const file = await this.genMazeFile(Date.now(), size);