1
0
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:
Jbleezy
2022-01-23 21:44:05 -08:00
parent 4523f475b5
commit d6cbfca12b
3 changed files with 61 additions and 3 deletions

View File

@ -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;