fix not being able to sell keys that are unlimited and have uses. Thanks drakia
This commit is contained in:
parent
edd5f0bbb4
commit
fbbc410182
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user