From 2e2bd9d88201bfc69526a576bce93daac082f352 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 16 Dec 2015 22:40:26 +0000 Subject: [PATCH] Debris updates. --- src/battle/effects.c | 2 +- src/battle/fighters.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/battle/effects.c b/src/battle/effects.c index 99b6e74..c0ceafd 100644 --- a/src/battle/effects.c +++ b/src/battle/effects.c @@ -155,7 +155,7 @@ void addDebrisFire(int x, int y) e->y = y + (rand() % 8 - rand() % 8); e->texture = explosionTexture; e->health = 0; - e->size = 8 + rand() % 9; + e->size = 4 + rand() % 12; setRandomFlameHue(e); diff --git a/src/battle/fighters.c b/src/battle/fighters.c index 133540e..4a3f0b2 100644 --- a/src/battle/fighters.c +++ b/src/battle/fighters.c @@ -473,7 +473,7 @@ static void immediateDie(void) self->alive = ALIVE_DEAD; addSmallExplosion(); playBattleSound(SND_EXPLOSION_1 + rand() % 4, self->x, self->y); - addDebris(self->x, self->y, rand() % 5); + addDebris(self->x, self->y, 3 + rand() % 6); } static void spinDie(void) @@ -496,7 +496,7 @@ static void spinDie(void) self->alive = ALIVE_DEAD; addSmallExplosion(); playBattleSound(SND_EXPLOSION_1 + rand() % 4, self->x, self->y); - addDebris(self->x, self->y, rand() % 5); + addDebris(self->x, self->y, 3 + rand() % 6); } } @@ -518,7 +518,7 @@ static void straightDie(void) self->alive = ALIVE_DEAD; addSmallExplosion(); playBattleSound(SND_EXPLOSION_1 + rand() % 4, self->x, self->y); - addDebris(self->x, self->y, rand() % 5); + addDebris(self->x, self->y, 3 + rand() % 6); } }