From fbbc410182c289798ddc45ad0eb743233bbcad36 Mon Sep 17 00:00:00 2001 From: Kaeno Date: Fri, 16 Feb 2024 21:18:06 +0000 Subject: [PATCH] fix not being able to sell keys that are unlimited and have uses. Thanks drakia --- project/src/helpers/ItemHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/helpers/ItemHelper.ts b/project/src/helpers/ItemHelper.ts index f912916c..faea3c72 100644 --- a/project/src/helpers/ItemHelper.ts +++ b/project/src/helpers/ItemHelper.ts @@ -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;