Really fixed nerfing this time

This commit is contained in:
Layla Marchant 2020-05-26 17:57:41 -04:00
parent a2ad01846a
commit b517275bd3
3 changed files with 7 additions and 6 deletions

View File

@ -62,7 +62,7 @@ static int alien_getFreeIndex()
return -1; return -1;
} }
static void alien_nerf(int index) void alien_nerf(int index)
{ {
if (game.difficulty == DIFFICULTY_SUPEREASY) if (game.difficulty == DIFFICULTY_SUPEREASY)
{ {
@ -1087,7 +1087,8 @@ void aliens_init()
if (aliens[i].classDef == CD_CLOAKFIGHTER) if (aliens[i].classDef == CD_CLOAKFIGHTER)
{ {
aliens[i].active = 0; aliens[i].active = 0;
aliens[i].maxShield = aliens[i].shield = 400; aliens[i].maxShield = 400;
aliens[i].shield = 400;
aliens[i].flags &= ~FL_RUNSAWAY; aliens[i].flags &= ~FL_RUNSAWAY;
aliens[i].speed = 3; aliens[i].speed = 3;
} }
@ -1124,8 +1125,6 @@ void aliens_init()
if (i == ALIEN_BOSS) if (i == ALIEN_BOSS)
aliens[i].chance[1] = 5; aliens[i].chance[1] = 5;
} }
alien_nerf(i);
} }
} }
@ -1361,11 +1360,11 @@ int alien_add()
aliens[index].ammo[0] = 0; aliens[index].ammo[0] = 0;
alien_nerf(index);
if (game.area == MISN_ELLESH) if (game.area == MISN_ELLESH)
aliens[index].flags |= FL_HASMINIMUMSPEED; aliens[index].flags |= FL_HASMINIMUMSPEED;
alien_nerf(index);
return 1; return 1;
} }

View File

@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
extern Object alien_defs[CD_MAX]; extern Object alien_defs[CD_MAX];
extern Object aliens[ALIEN_MAX]; extern Object aliens[ALIEN_MAX];
void alien_nerf(int index);
void alien_defs_init(); void alien_defs_init();
void aliens_init(); void aliens_init();
int alien_add(); int alien_add();

View File

@ -2530,6 +2530,7 @@ int game_mainLoop()
aliens[i].systemPower = aliens[i].maxShield; aliens[i].systemPower = aliens[i].maxShield;
aliens[i].deathCounter = 0 - (aliens[i].maxShield * 3); aliens[i].deathCounter = 0 - (aliens[i].maxShield * 3);
LIMIT(aliens[i].deathCounter, -350, 0); LIMIT(aliens[i].deathCounter, -350, 0);
alien_nerf(i);
} }
// Set target energy meter // Set target energy meter