From e05d184b6fb9b4258380cccc146fde76f0d1d8a2 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Wed, 15 Apr 2020 22:27:32 +0200 Subject: Buff Basilisk's healing and double its value --- src/game/g_active.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/game/g_active.c') diff --git a/src/game/g_active.c b/src/game/g_active.c index c857e57..ac0717e 100644 --- a/src/game/g_active.c +++ b/src/game/g_active.c @@ -856,9 +856,17 @@ void ClientTimerActions( gentity_t *ent, int msec ) boostEntity = &g_entities[ entityList[ i ] ]; if( boostEntity->client && boostEntity->client->ps.stats[ STAT_PTEAM ] == PTE_ALIENS && - boostEntity->client->ps.stats[ STAT_PCLASS ] == PCL_ALIEN_LEVEL1_UPG ) + boostEntity->client->ps.stats[ STAT_PCLASS ] == PCL_ALIEN_LEVEL1_UPG && + boostEntity->health > 0 ) { modifier = LEVEL1_REGEN_MOD; + + if( ent != boostEntity && ent->health < client->ps.stats[ STAT_MAX_HEALTH ] ) + { + G_AddCreditToClient( boostEntity->client, LEVEL1_REGEN_REWARD, qtrue ); + boostEntity->client->pers.statscounters.earned += LEVEL1_REGEN_REWARD; + } + break; } else if( boostEntity->s.eType == ET_BUILDABLE && -- cgit