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:
parent
bdd9a4cd9b
commit
12cda6acb8
@ -154,7 +154,10 @@ export class RepairService
|
||||
{
|
||||
const skillPoints = this.getWeaponRepairSkillPoints(repairDetails);
|
||||
|
||||
this.profileHelper.addSkillPointsToPlayer(pmcData, SkillTypes.WEAPON_TREATMENT, skillPoints, true);
|
||||
if (skillPoints > 0)
|
||||
{
|
||||
this.profileHelper.addSkillPointsToPlayer(pmcData, SkillTypes.WEAPON_TREATMENT, skillPoints, true);
|
||||
}
|
||||
}
|
||||
|
||||
// Handle kit repairs of armor
|
||||
|
Loading…
Reference in New Issue
Block a user