mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 23:27:57 -05:00
Grief: add sudden death
This commit is contained in:
@ -234,6 +234,10 @@ perk_set_max_health_if_jugg( perk, set_premaxhealth, clamp_health_to_max_health
|
||||
{
|
||||
max_total_health += level.pers_jugg_upgrade_health_bonus;
|
||||
}
|
||||
if ( is_true( level.sudden_death ) && isDefined( level.sudden_death_health_loss ) )
|
||||
{
|
||||
max_total_health -= level.sudden_death_health_loss;
|
||||
}
|
||||
missinghealth = self.maxhealth - self.health;
|
||||
self setmaxhealth( max_total_health );
|
||||
self.health -= missinghealth;
|
||||
|
Reference in New Issue
Block a user