This commit is contained in:
syuilo 2019-05-11 12:56:01 +09:00
parent 75d0731ee1
commit e7419c0100
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 2 additions and 0 deletions

View file

@ -82,6 +82,7 @@ export function genMaze(seed, complexity?) {
let mazeSize;
if (complexity) {
if (complexity === 'veryEasy') mazeSize = 3 + rand(3);
if (complexity === 'easy') mazeSize = 10 + rand(12);
if (complexity === 'hard') mazeSize = 20 + rand(15);
if (complexity === 'veryHard') mazeSize = 35 + rand(15);

View file

@ -69,6 +69,7 @@ export default class extends Module {
private async mentionHook(msg: Message) {
if (msg.includes(['迷路'])) {
let size = null;
if (msg.includes(['接待'])) size = 'veryEasy';
if (msg.includes(['簡単', 'かんたん', '易しい', 'やさしい', '小さい', 'ちいさい'])) size = 'easy';
if (msg.includes(['難しい', 'むずかしい', '複雑な', '大きい', 'おおきい'])) size = 'hard';
if (msg.includes(['死', '鬼', '地獄'])) size = 'veryHard';