mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 05:08:00 +00:00
settai
This commit is contained in:
parent
75d0731ee1
commit
e7419c0100
|
@ -82,6 +82,7 @@ export function genMaze(seed, complexity?) {
|
||||||
|
|
||||||
let mazeSize;
|
let mazeSize;
|
||||||
if (complexity) {
|
if (complexity) {
|
||||||
|
if (complexity === 'veryEasy') mazeSize = 3 + rand(3);
|
||||||
if (complexity === 'easy') mazeSize = 10 + rand(12);
|
if (complexity === 'easy') mazeSize = 10 + rand(12);
|
||||||
if (complexity === 'hard') mazeSize = 20 + rand(15);
|
if (complexity === 'hard') mazeSize = 20 + rand(15);
|
||||||
if (complexity === 'veryHard') mazeSize = 35 + rand(15);
|
if (complexity === 'veryHard') mazeSize = 35 + rand(15);
|
||||||
|
|
|
@ -69,6 +69,7 @@ export default class extends Module {
|
||||||
private async mentionHook(msg: Message) {
|
private async mentionHook(msg: Message) {
|
||||||
if (msg.includes(['迷路'])) {
|
if (msg.includes(['迷路'])) {
|
||||||
let size = null;
|
let size = null;
|
||||||
|
if (msg.includes(['接待'])) size = 'veryEasy';
|
||||||
if (msg.includes(['簡単', 'かんたん', '易しい', 'やさしい', '小さい', 'ちいさい'])) size = 'easy';
|
if (msg.includes(['簡単', 'かんたん', '易しい', 'やさしい', '小さい', 'ちいさい'])) size = 'easy';
|
||||||
if (msg.includes(['難しい', 'むずかしい', '複雑な', '大きい', 'おおきい'])) size = 'hard';
|
if (msg.includes(['難しい', 'むずかしい', '複雑な', '大きい', 'おおきい'])) size = 'hard';
|
||||||
if (msg.includes(['死', '鬼', '地獄'])) size = 'veryHard';
|
if (msg.includes(['死', '鬼', '地獄'])) size = 'veryHard';
|
||||||
|
|
Loading…
Reference in a new issue