(cb10c219e) Allow to set the vitality for a character without afflicting damage. Make a bunch of properties of Attack class publicly accessible.
This commit is contained in:
@@ -612,6 +612,12 @@ namespace Barotrauma
|
||||
|
||||
partial void UpdateBleedingProjSpecific(AfflictionBleeding affliction, Limb targetLimb, float deltaTime);
|
||||
|
||||
public void SetVitality(float newVitality)
|
||||
{
|
||||
maxVitality = newVitality;
|
||||
CalculateVitality();
|
||||
}
|
||||
|
||||
public void CalculateVitality()
|
||||
{
|
||||
Vitality = MaxVitality;
|
||||
|
||||
Reference in New Issue
Block a user