From cc56eeeda769a9763a4db7e4da5cc49d5d75005c Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 9 Dec 2018 05:07:34 +0900 Subject: [PATCH] Update index.ts --- src/modules/fortune/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/fortune/index.ts b/src/modules/fortune/index.ts index 3ee6fdd..babc88b 100644 --- a/src/modules/fortune/index.ts +++ b/src/modules/fortune/index.ts @@ -173,6 +173,9 @@ const items = [ '丸いもの', '四角いもの', 'カード状のもの', + '気体', + '鉛筆', + '消しゴム', ]; export default class FortuneModule implements IModule { @@ -186,7 +189,7 @@ export default class FortuneModule implements IModule { const seed = `${date.getFullYear()}/${date.getMonth()}/${date.getDay()}@${msg.userId}`; const rng = seedrandom(seed); const omikuji = omikujis[Math.floor(rng() * omikujis.length)]; - const itemPrefix = Math.floor(rng() * 2) == 0 ? itemPrefixes[Math.floor(rng() * itemPrefixes.length)] : ''; + const itemPrefix = Math.floor(rng() * 5) != 0 ? itemPrefixes[Math.floor(rng() * itemPrefixes.length)] : ''; const item = items[Math.floor(rng() * items.length)]; msg.reply(`**${omikuji}🎉**\nラッキーアイテム: ${itemPrefix}${item}`, serifs.fortune.cw(msg.friend.name)); return true;