From 830c9c2ecdafd067a10faba6abb26c3d10e411c1 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 7 Feb 2024 18:03:44 +0900 Subject: [PATCH] :v: --- src/modules/reversi/back.ts | 3 ++- src/modules/reversi/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/reversi/back.ts b/src/modules/reversi/back.ts index d3769af..69e0574 100644 --- a/src/modules/reversi/back.ts +++ b/src/modules/reversi/back.ts @@ -62,7 +62,8 @@ class Session { } private get userName(): string { - const name = getUserName(this.user); + let name = getUserName(this.user); + if (name.includes('$') || name.includes('<') || name.includes('*')) name = this.user.username; return `?[${name}](${config.host}/@${this.user.username})${titles.some(x => name.endsWith(x)) ? '' : 'さん'}`; } diff --git a/src/modules/reversi/index.ts b/src/modules/reversi/index.ts index 5ade998..c5f962b 100644 --- a/src/modules/reversi/index.ts +++ b/src/modules/reversi/index.ts @@ -89,10 +89,10 @@ export default class extends Module { @bindThis private onReversiGameStart(game: any) { - let strength = 5; + let strength = 4; const friend = this.ai.lookupFriend(game.user1Id !== this.ai.account.id ? game.user1Id : game.user2Id)!; if (friend != null) { - strength = friend.doc.reversiStrength ?? 5; + strength = friend.doc.reversiStrength ?? 4; friend.updateReversiStrength(null); }