Add tests
This commit is contained in:
parent
d0265ad90e
commit
b6db7e8dc7
1 changed files with 494 additions and 109 deletions
|
|
@ -47,6 +47,11 @@ export abstract class FeedbackHud {
|
|||
const { killfeed } = this.ensureRoot();
|
||||
const charged = charge >= settings.chargedHitThreshold;
|
||||
|
||||
// A quick crimson vignette pulse around the whole frame to punctuate the kill.
|
||||
const flash = document.createElement('div');
|
||||
flash.className = 'kill-flash' + (charged ? ' charged' : '');
|
||||
this.addTransient(flash, 420);
|
||||
|
||||
const entry = document.createElement('div');
|
||||
entry.className = 'kill-entry';
|
||||
entry.innerHTML = `Eliminated <b>${this.escape(victimName ?? 'enemy')}</b>`;
|
||||
|
|
|
|||
Loading…
Reference in a new issue