mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01:00
feat: that's a lotta damage easter egg
This commit is contained in:
1 parent
4f7b4f1602
commit
3d0c87579b
1 file changed
+8
-1
@@ -66,7 +66,14 @@ export function ShotDisplay() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
useEffect(() => {
|
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');
|
const audio = new Audio('/assets/audio/lotta-damage.mp3');
|
||||||
|
|
||||||
audio.currentTime = 0.7;
|
audio.currentTime = 0.7;
|
||||||
|
|||||||
Reference in new issue
Block a user