fix not being able to sell keys that are unlimited and have uses. Thanks drakia

This commit is contained in:
Kaeno 2024-02-16 21:18:06 +00:00
parent edd5f0bbb4
commit fbbc410182

View File

@ -366,7 +366,7 @@ export class ItemHelper
// food & drink // food & drink
result = foodDrink.HpPercent / itemDetails._props.MaxResource; result = foodDrink.HpPercent / itemDetails._props.MaxResource;
} }
else if (key && key.NumberOfUsages > 0) else if (key && key.NumberOfUsages > 0 && itemDetails._props.MaximumNumberOfUsage > 0)
{ {
// keys - keys count upwards, not down like everything else // keys - keys count upwards, not down like everything else
const maxNumOfUsages = itemDetails._props.MaximumNumberOfUsage; const maxNumOfUsages = itemDetails._props.MaximumNumberOfUsage;