diff --git a/frontend/gfx/img/elder.png b/frontend/gfx/img/elder.png index cb1a9bc..c1acd5a 100644 Binary files a/frontend/gfx/img/elder.png and b/frontend/gfx/img/elder.png differ diff --git a/frontend/gfx/ingame.css b/frontend/gfx/ingame.css index 33f41f1..246c252 100644 --- a/frontend/gfx/ingame.css +++ b/frontend/gfx/ingame.css @@ -912,6 +912,7 @@ body { font-family: var(--primary-font-family); font-weight: 900; letter-spacing: 1.5px; + font-size: 20px; } /* --------------------------------- */ diff --git a/frontend/gfx/ingame.js b/frontend/gfx/ingame.js index dbbbc8e..5b70632 100644 --- a/frontend/gfx/ingame.js +++ b/frontend/gfx/ingame.js @@ -93,9 +93,9 @@ function calcK(amount) { case amount === undefined: return 0 case amount > 1000: - return `${(amount / 1000).toFixed(1)} K` + return `${(amount / 1000).toFixed(1)}K` case amount < -1000: - return `${(amount / 1000).toFixed(1)} K` + return `${(amount / 1000).toFixed(1)}K` default: return amount.toFixed(0) } @@ -329,6 +329,7 @@ function ppUpdate(e) { const title = teamDiv.querySelector('.pp-text') const timer = teamDiv.querySelector('.timer') const gold = teamDiv.querySelector('h1') + const image = teamDiv.querySelector('img') if (!e.ongoing) { title.innerText = e.type @@ -352,6 +353,11 @@ function ppUpdate(e) { e.percent }%, var(--background-light-color) ${e.percent + 3}%)` } + if(e.type === 'Dragon') { + image.src = 'img/elder.png' + } else { + image.src = 'img/baron.png' + } if (teamDiv.classList.contains('hide')) { setTimeout(() => {