Enable running of scripts when enemies are killed.

This commit is contained in:
Steve 2015-12-02 07:24:26 +00:00
parent 26c4bd4aea
commit a15efc4ea9
1 changed files with 4 additions and 0 deletions

View File

@ -278,6 +278,8 @@ void doFighter(void)
if (self->side != SIDE_ALLIES)
{
battle.stats[STAT_ENEMIES_KILLED]++;
runScriptFunction("ENEMIES_KILLED %d", battle.stats[STAT_ENEMIES_KILLED]);
}
else
{
@ -379,6 +381,8 @@ void drawFighter(Entity *e)
{
drawShieldHitEffect(e);
}
SDL_SetTextureColorMod(e->texture, 255, 255, 255);
}
void applyFighterThrust(void)