Skip to content

Commit

Permalink
✌️ (#7)
Browse files Browse the repository at this point in the history
Co-authored-by: syuilo <[email protected]>
  • Loading branch information
u1-liquid and syuilo authored Feb 7, 2024
1 parent 6750b15 commit 0a45e12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/modules/reversi/back.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) ? '' : 'さん'}`;
}

Expand Down
4 changes: 2 additions & 2 deletions src/modules/reversi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 0a45e12

Please sign in to comment.