Adjust getWeaponRepairSkillPoints()
to never return a value below 0
This commit is contained in:
parent
aed65ce1cb
commit
8fe9fb9391
@ -245,7 +245,7 @@ export class RepairService
|
||||
skillPoints += this.repairConfig.weaponTreatment.critSuccessAmount;
|
||||
}
|
||||
|
||||
return skillPoints;
|
||||
return Math.max(skillPoints, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user