/*
-Copyright (C) 2004-2010 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
#include "bosses.h"
+// this is used exclusively by the bosses
+Boss *self;
+
void tankBossLevel()
{
if (player.health < 1)
Math::removeBit(&bullet->flags, ENT_WEIGHTLESS);
Math::removeBit(&bullet->flags, ENT_BOUNCES);
- audio.playSound(SND_RICO1, CH_ANY);
+ audio.playSound(SND_RICO1, CH_ANY, bullet->x);
return false;
}
if (!(self->flags & ENT_IMMUNE))
{
self->health -= bullet->damage;
- audio.playSound(SND_CLANG, CH_ANY);
+ audio.playSound(SND_CLANG, CH_ANY, bullet->x);
addColorParticles(bullet->x, bullet->y, Math::rrand(25, 75), -1);
Math::removeBit(&bullet->flags, ENT_SPARKS);
Math::removeBit(&bullet->flags, ENT_PUFFS);