mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-06 00:38:49 +00:00
+ add random bot names
This commit is contained in:
@@ -227,7 +227,7 @@ export class NameLayer implements Layer {
|
||||
|
||||
|
||||
if (myPlayer != null) {
|
||||
const emojis = render.player.outgoingEmojis().filter(e => e.recipient == AllPlayers || e.recipient == myPlayer)
|
||||
const emojis = render.player.outgoingEmojis().filter(e => e.recipient == AllPlayers || e.recipient == myPlayer);
|
||||
if (emojis.length > 0) {
|
||||
context.font = `${render.fontSize * 4}px ${this.theme.font()}`;
|
||||
context.fillStyle = this.theme.playerInfoColor(render.player.id()).toHex();
|
||||
@@ -246,4 +246,4 @@ export class NameLayer implements Layer {
|
||||
this.myPlayer = this.game.players().find(p => p.clientID() == this.clientID)
|
||||
return this.myPlayer
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user