diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 5d85819d5..6aac41c7d 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1982,6 +1982,10 @@ pages: _divide: arg1: "A" arg2: "B" + remind: "÷ 割った余り" + _remind: + arg1: "A" + arg2: "B" eq: "AとBが同じ" _eq: arg1: "A" diff --git a/src/misc/aiscript/evaluator.ts b/src/misc/aiscript/evaluator.ts index 2bc866dc4..6beb32044 100644 --- a/src/misc/aiscript/evaluator.ts +++ b/src/misc/aiscript/evaluator.ts @@ -160,6 +160,7 @@ export class ASEvaluator { subtract: (a: number, b: number) => a - b, multiply: (a: number, b: number) => a * b, divide: (a: number, b: number) => a / b, + remind: (a: number, b: number) => a % b, strLen: (a: string) => a.length, strPick: (a: string, b: number) => a[b - 1], strReplace: (a: string, b: string, c: string) => a.split(b).join(c), diff --git a/src/misc/aiscript/index.ts b/src/misc/aiscript/index.ts index 711cfb41e..1ce09b7bd 100644 --- a/src/misc/aiscript/index.ts +++ b/src/misc/aiscript/index.ts @@ -57,6 +57,7 @@ export const funcDefs: Record