5180 fichiers 38.5 Mo 0 téléchargements 218 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / api / inventory / TradeReopen.ts
TradeReopen.ts 624 o Télécharger le fichier
import { TradeState } from './TradeState';

/**
 * The trade state once the offer changes or one side takes back its acceptance. Polaris then clears
 * both acceptances and confirmations (RoomTrade.clearAccepted) without saying so, so a trade already
 * counting down or confirming has to go back to running: left in CONFIRMING, the confirm click was
 * ignored by the server and the trade stayed stuck until cancelled.
 */
export const reopenedTradeState = (state: number): number =>
    state >= TradeState.TRADING_STATE_COUNTDOWN && state <= TradeState.TRADING_STATE_CONFIRMED ? TradeState.TRADING_STATE_RUNNING : state;
15Sujets
1Dépôts
20Membres
2En 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