Returned the obscene power of the original charger to origial difficulty.

Also made some tweaks to the code that displays the charge shots
to make it look a little better.
This commit is contained in:
onpon4 2015-06-09 01:06:26 -04:00
parent 5964066969
commit 30ace4d67b
2 changed files with 14 additions and 3 deletions

View File

@ -81,7 +81,11 @@ void bullet_add(object *theWeapon, object *attacker, int y, int dy)
if (bullet->id == WT_CHARGER)
{
bullet->damage = attacker->ammo[1] / 2;
if (game.difficulty == DIFFICULTY_ORIGINAL)
bullet->damage = attacker->ammo[1];
else
bullet->damage = attacker->ammo[1] / 2;
if (bullet->damage < 15)
{
bullet->damage = 1;

View File

@ -439,6 +439,7 @@ static void game_doBullets()
bool okayToHit = false;
int old_shield;
float homingMissileSpeed = 0;
int charger_num;
bullet = engine.bulletHead;
prevBullet = engine.bulletHead;
@ -478,9 +479,15 @@ static void game_doBullets()
if (bullet->id == WT_CHARGER)
{
for (int i = 0 ; i < bullet->damage * 2 ; i++)
if (game.difficulty == DIFFICULTY_ORIGINAL)
charger_num = bullet->damage;
else
charger_num = bullet->damage * 2;
for (int i = 0 ; i < charger_num ; i++)
blit(bullet->image[0],
(int)(bullet->x - RANDRANGE(-(bullet->damage * 2 / 3), 0)),
(int)(bullet->x - RANDRANGE(
-(charger_num / 6), charger_num / 6)),
(int)(bullet->y + RANDRANGE(-3, 3)));
}