fix: fix emojis upgrade

This commit is contained in:
Kirill Siukhin 2025-06-22 21:42:29 +05:00
parent 02904a747a
commit 4c782e999c
3 changed files with 16 additions and 6 deletions

View File

@ -27,9 +27,12 @@
opacity: 0;
transform: rotate(0deg);
}
100% {
left: 100%;
50% {
opacity: 1;
}
100% {
left: 90%;
opacity: 0;
transform: rotate(360deg);
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View File

@ -161,14 +161,13 @@ function onResetProgressClick() {
// emojis
function enableEmojis() {
const emojis = ['😎', '😆', '😛', '😏', '😔', '🥲', '😔', '😒', '😍', '😃', '🤓', '😊', '😁', '😄'];
const upgEmojis = document.getElementById('upg-emojis');
upgEmojis.style.display = 'block';
const emojis = ['😎', '😆', '😛', '😏', '😔', '🥲', '😔', '😒', '😍', '😃', '🤓', '😊', '😁', '😄'];
var randomEmoji = emojis[Math.floor(Math.random() * emojis.length)];
setInterval(() => {
mood += 200;
const randomEmoji = emojis[Math.floor(Math.random() * emojis.length)];
upgEmojis.innerText = randomEmoji;
updateMoodCounter();
}, 5000);
@ -253,7 +252,7 @@ let upgrades = [
{
id: 'emojis',
name: 'Emoji Thruster',
description: 'Let the emotions flyyyyyyy +200mood/5s',
description: 'Flying emoji +200mood/5s',
image: '../assets/img/upgrades/emojis.png',
cost: 500,
onPurchase: enableEmojis,
@ -282,6 +281,14 @@ let upgrades = [
cost: 3000,
onPurchase: enableMixer,
},
{
id: 'emojis2',
name: 'More Emoji Thrusters',
description: 'Let the emojis flyyyyyyy +200mood/5s',
image: '../assets/img/upgrades/emojis2.png',
cost: 4000,
onPurchase: enableEmojis,
},
{
id: 'cuteface',
name: 'Cuteface',