UNPKG

@reldens/items-system

Version:
24 lines (19 loc) 639 B
/** * * Reldens - Items System - ExchangeRequirement * */ class ExchangeRequirement { constructor(props) { this.itemUid = props.itemUid || ''; this.itemKey = props.itemKey || ''; this.requiredItemKey = props.requiredItemKey; this.requiredQuantity = Number(props.requiredQuantity); // @NOTE: this will remove the required item from the proper inventory. A use example will be "gold" been // auto-removed when the exchange finishes. this.autoRemoveRequirement = Boolean(props.autoRemoveRequirement); } } module.exports = ExchangeRequirement;