Adjust getWeaponRepairSkillPoints() to never return a value below 0

This commit is contained in:
Dev 2023-11-18 21:59:48 +00:00
parent aed65ce1cb
commit 8fe9fb9391

View File

@ -245,7 +245,7 @@ export class RepairService
skillPoints += this.repairConfig.weaponTreatment.critSuccessAmount; skillPoints += this.repairConfig.weaponTreatment.critSuccessAmount;
} }
return skillPoints; return Math.max(skillPoints, 0);
} }
/** /**