This commit is contained in:
syuilo 2024-02-07 18:03:44 +09:00
parent 465b4312dc
commit 830c9c2ecd
2 changed files with 4 additions and 3 deletions

View file

@ -62,7 +62,8 @@ class Session {
} }
private get userName(): string { 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)) ? '' : 'さん'}`; return `?[${name}](${config.host}/@${this.user.username})${titles.some(x => name.endsWith(x)) ? '' : 'さん'}`;
} }

View file

@ -89,10 +89,10 @@ export default class extends Module {
@bindThis @bindThis
private onReversiGameStart(game: any) { 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)!; const friend = this.ai.lookupFriend(game.user1Id !== this.ai.account.id ? game.user1Id : game.user2Id)!;
if (friend != null) { if (friend != null) {
strength = friend.doc.reversiStrength ?? 5; strength = friend.doc.reversiStrength ?? 4;
friend.updateReversiStrength(null); friend.updateReversiStrength(null);
} }