Only heal bodypart if player chose hp healing in post-raid therapist healing screen
This commit is contained in:
parent
5e919f4793
commit
fa1e15897a
@ -191,8 +191,12 @@ export class HealthController
|
|||||||
const partRequest: BodyPart = healthTreatmentRequest.difference.BodyParts[bodyPartKey];
|
const partRequest: BodyPart = healthTreatmentRequest.difference.BodyParts[bodyPartKey];
|
||||||
const profilePart = pmcData.Health.BodyParts[bodyPartKey];
|
const profilePart = pmcData.Health.BodyParts[bodyPartKey];
|
||||||
|
|
||||||
// Set profile bodypart to max
|
// Bodypart healing is chosen when part request hp is above 0
|
||||||
profilePart.Health.Current = profilePart.Health.Maximum;
|
if (partRequest.Health > 0)
|
||||||
|
{
|
||||||
|
// Heal bodypart
|
||||||
|
profilePart.Health.Current = profilePart.Health.Maximum;
|
||||||
|
}
|
||||||
|
|
||||||
// Check for effects to remove
|
// Check for effects to remove
|
||||||
if (partRequest.Effects?.length > 0)
|
if (partRequest.Effects?.length > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user