minor fix marketplace + xyi ego znaet

This commit is contained in:
aurinex
2025-12-13 18:59:30 +05:00
parent 74a3e3c7cf
commit d9a3a1cd1f
16 changed files with 459 additions and 226 deletions

View File

@ -26,6 +26,7 @@ import { getPlayerServer } from '../utils/playerOnlineCheck';
import CaseRoulette from '../components/CaseRoulette';
import BonusShopItem from '../components/BonusShopItem';
import ShopItem from '../components/ShopItem';
import { playBuySound } from '../utils/sounds';
function getRarityByWeight(
weight?: number,
@ -157,6 +158,9 @@ export default function Shop() {
try {
await purchaseCape(username, cape_id);
await loadUserCapes(username);
playBuySound();
setNotification({
open: true,
message: 'Плащ успешно куплен!',
@ -260,6 +264,9 @@ export default function Shop() {
await withProcessing(bonusTypeId, async () => {
try {
const res = await purchaseBonus(username, bonusTypeId);
playBuySound();
setNotification({
open: true,
message: res.message || 'Прокачка успешно куплена!',