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 f715267..0ad63d5 100644 --- a/frontend/gfx/ingame.css +++ b/frontend/gfx/ingame.css @@ -957,6 +957,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 f77789f..f38f8c7 100644 --- a/frontend/gfx/ingame.js +++ b/frontend/gfx/ingame.js @@ -94,9 +94,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) } @@ -332,6 +332,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 @@ -355,6 +356,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(() => {