From 17b373ac0737f0352b80753861f3b2e03200f8fd Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 5 May 2019 20:16:05 +0900 Subject: [PATCH] :v: --- locales/ja-JP.yml | 4 ++-- src/misc/aiscript/evaluator.ts | 2 +- src/misc/aiscript/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 52e0f7f480..e337f9383f 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2059,8 +2059,8 @@ pages: _seedRandomPick: arg1: "シード" arg2: "リスト" - dailyRPWPM: "確率付きリストからランダムに選択 (ユーザーごとに日替わり)" - _ddailyRPWPM: + DRPWPM: "確率付きリストからランダムに選択 (ユーザーごとに日替わり)" + _DRPWPM: arg1: "テキストのリスト" number: "数値" stringToNumber: "テキストを数値に" diff --git a/src/misc/aiscript/evaluator.ts b/src/misc/aiscript/evaluator.ts index 5e511576c8..e28bf64149 100644 --- a/src/misc/aiscript/evaluator.ts +++ b/src/misc/aiscript/evaluator.ts @@ -178,7 +178,7 @@ export class ASEvaluator { seedRandom: (seed: any, probability: number) => Math.floor(seedrandom(seed)() * 100) < probability, seedRannum: (seed: any, min: number, max: number) => min + Math.floor(seedrandom(seed)() * (max - min + 1)), seedRandomPick: (seed: any, list: any[]) => list[Math.floor(seedrandom(seed)() * list.length)], - dailyRPWPM: (list: string[]) => { + DRPWPM: (list: string[]) => { const xs = []; let totalFactor = 0; for (const x of list) { diff --git a/src/misc/aiscript/index.ts b/src/misc/aiscript/index.ts index 61a6b7b139..46d0751689 100644 --- a/src/misc/aiscript/index.ts +++ b/src/misc/aiscript/index.ts @@ -81,7 +81,7 @@ export const funcDefs: Record = {