feat: that's a lotta damage easter egg

This commit is contained in:
TrèsAbhi committed 2024-07-24 13:30:50 -05:00
1 parent 4f7b4f1602
commit 3d0c87579b
1 file changed
+8 -1
@@ -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;