mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-03-21 17:25:10 -05:00
Auctions: Show managers of top bidder in bid info box (#11702)
This commit is contained in:
parent
fe37e47d54
commit
ea822f8863
|
|
@ -259,8 +259,11 @@ export class Auction extends Rooms.SimpleRoomGame {
|
|||
sendBidInfo() {
|
||||
let buf = `<div class="infobox">`;
|
||||
buf += Utils.html`Player: <username>${this.nominatedPlayer.name}</username> `;
|
||||
if (this.type === 'auction') buf += `Top bid: <b>${this.highestBid}</b> `;
|
||||
if (this.type === 'auction') buf += Utils.html`Top bidder: <b>${this.highestBidder.name}</b><br/>`;
|
||||
if (this.type === 'auction') {
|
||||
buf += `Top bid: <b>${this.highestBid}</b> `;
|
||||
buf += Utils.html`Top bidder: <b>${this.highestBidder.name}</b> `;
|
||||
buf += `Managers: ${this.highestBidder.getManagers().map(m => `<username class="username">${Utils.escapeHTML(m)}</username>`).join(' ')}<br/>`;
|
||||
}
|
||||
buf += Utils.html`Tiers Played: <b>${this.nominatedPlayer.tiersPlayed.length ? `${this.nominatedPlayer.tiersPlayed.join(', ')}` : 'N/A'}</b><br/>`;
|
||||
buf += Utils.html`Tiers Not Played: <b>${this.nominatedPlayer.tiersNotPlayed.length ? `${this.nominatedPlayer.tiersNotPlayed.join(', ')}` : 'N/A'}</b>`;
|
||||
buf += `</div>`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user