From 6d08909b2f694972c847d10262327723169df590 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 15 Jun 2019 17:06:03 +0900 Subject: [PATCH] Refactor --- 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 52f1e2901..7053360a1 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2060,8 +2060,8 @@ pages: _divide: arg1: "A" arg2: "B" - remind: "÷ 割った余り" - _remind: + mod: "÷ 割った余り" + _mod: arg1: "A" arg2: "B" eq: "AとBが同じ" diff --git a/src/misc/aiscript/evaluator.ts b/src/misc/aiscript/evaluator.ts index 541d4e4c6..d93fcebcf 100644 --- a/src/misc/aiscript/evaluator.ts +++ b/src/misc/aiscript/evaluator.ts @@ -161,7 +161,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, + mod: (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 236b332da..8635399da 100644 --- a/src/misc/aiscript/index.ts +++ b/src/misc/aiscript/index.ts @@ -58,7 +58,7 @@ export const funcDefs: Record