From 8fe9fb9391a86f9743f4532d9056fd968d72200c Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 18 Nov 2023 21:59:48 +0000 Subject: [PATCH] Adjust `getWeaponRepairSkillPoints()` to never return a value below 0 --- project/src/services/RepairService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/services/RepairService.ts b/project/src/services/RepairService.ts index 6333e92a..3a099022 100644 --- a/project/src/services/RepairService.ts +++ b/project/src/services/RepairService.ts @@ -245,7 +245,7 @@ export class RepairService skillPoints += this.repairConfig.weaponTreatment.critSuccessAmount; } - return skillPoints; + return Math.max(skillPoints, 0); } /**