This commit is contained in:
Dev 2024-02-17 09:36:55 +00:00
commit cc061b5381

View File

@ -366,7 +366,7 @@ export class ItemHelper
// food & drink
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
const maxNumOfUsages = itemDetails._props.MaximumNumberOfUsage;