mirror of
https://github.com/syuilo/ai.git
synced 2024-12-22 00:11:09 +00:00
✌️
This commit is contained in:
parent
465b4312dc
commit
830c9c2ecd
|
@ -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)) ? '' : 'さん'}`;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue