getWeaponRepairSkillPoints() has a chance to return 0 due to the possibility of a critical failure, only run addSkillPointsToPlayer() if value is above 0

This commit is contained in:
Dev 2023-12-10 13:18:14 +00:00
parent bdd9a4cd9b
commit 12cda6acb8

View File

@ -154,8 +154,11 @@ export class RepairService
{
const skillPoints = this.getWeaponRepairSkillPoints(repairDetails);
if (skillPoints > 0)
{
this.profileHelper.addSkillPointsToPlayer(pmcData, SkillTypes.WEAPON_TREATMENT, skillPoints, true);
}
}
// Handle kit repairs of armor
if (