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