5180 fichiers 38.5 Mo 0 téléchargements 479 vues mis à jour il y a 7 heures ui
nitro-v36-with-renderer-v36 / src / components / room / widgets / furniture / chestUpgradeQuantity.ts
chestUpgradeQuantity.ts 415 o Télécharger le fichier
/**
 * The quantity a capacity purchase actually asks for: the one picked, held inside what the chest still has room for.
 * After a purchase the options shrink, and a pick above the new limit would otherwise stay selected and be sent.
 */
export const clampUpgradeQuantity = (chosen: number, upgradesLeft: number, maxPerPurchase: number): number =>
    Math.max(1, Math.min(chosen, upgradesLeft, maxPerPurchase));
15Sujets
1Dépôts
20Membres
3En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser