Log skills gained when repairing armor using kits

This commit is contained in:
Dev 2024-02-16 20:02:00 +00:00
parent bf664d8bd1
commit edd5f0bbb4

View File

@ -155,6 +155,7 @@ export class RepairService
if (skillPoints > 0)
{
this.logger.debug(`Added: ${skillPoints} WEAPON_TREATMENT skill`);
this.profileHelper.addSkillPointsToPlayer(pmcData, SkillTypes.WEAPON_TREATMENT, skillPoints, true);
}
}
@ -187,6 +188,7 @@ export class RepairService
const pointsToAddToVestSkill = repairDetails.repairPoints
* this.repairConfig.armorKitSkillPointGainPerRepairPointMultiplier;
this.logger.debug(`Added: ${pointsToAddToVestSkill} ${vestSkillToLevel} skill`);
this.profileHelper.addSkillPointsToPlayer(pmcData, vestSkillToLevel, pointsToAddToVestSkill);
}
@ -194,6 +196,7 @@ export class RepairService
const intellectGainedFromRepair = this.getIntellectGainedFromRepair(repairDetails);
if (intellectGainedFromRepair > 0)
{
this.logger.debug(`Added: ${intellectGainedFromRepair} intellect skill`);
this.profileHelper.addSkillPointsToPlayer(pmcData, SkillTypes.INTELLECT, intellectGainedFromRepair);
}
}