diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 52e0f7f48..e337f9383 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 5e511576c..e28bf6414 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 61a6b7b13..46d075168 100644 --- a/src/misc/aiscript/index.ts +++ b/src/misc/aiscript/index.ts @@ -81,7 +81,7 @@ export const funcDefs: Record = {