mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Mafia: Make the game display "Night X" if it's night
This commit is contained in:
parent
ae81a063bb
commit
40844971ed
|
|
@ -227,7 +227,7 @@ class Mafia extends Rooms.RoomGame {
|
|||
// Simple window, used for announcements and the likes.
|
||||
mafiaWindow(image, content) {
|
||||
let output = '<div class="broadcast-blue">';
|
||||
output += '<h3>Day ' + this.day + '</h3>';
|
||||
output += '<h3>' + ((this.gamestate === 'day' || this.gamestate === 'lynch') ? 'Day ' : 'Night ') + this.day + '</h3>';
|
||||
output += '<table><tr><td style="text-align:center;">' + image + '</td><td style="text-align:center;width:100%;">';
|
||||
output += content;
|
||||
output += '</td></tr></table></div>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user