From 3d0c87579bb99055c88e8fa5c9b2e03834b66b89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 24 Jul 2024 13:30:50 -0500 Subject: [PATCH] feat: that's a lotta damage easter egg --- src/components/Armor/components/ShotDisplay.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/Armor/components/ShotDisplay.tsx b/src/components/Armor/components/ShotDisplay.tsx index b924f76a3..2cc554454 100644 --- a/src/components/Armor/components/ShotDisplay.tsx +++ b/src/components/Armor/components/ShotDisplay.tsx @@ -66,7 +66,14 @@ export function ShotDisplay() { }); useEffect(() => { - if (shot?.splashRadius !== undefined && shot.in.status === 'penetration') { + const data = new Date(); + const isHalloween = data.getMonth() === 9 && data.getDate() === 31; + + if ( + isHalloween && + shot?.splashRadius !== undefined && + shot.in.status === 'penetration' + ) { const audio = new Audio('/assets/audio/lotta-damage.mp3'); audio.currentTime = 0.7;