1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

sound for Blue Raider's attack

This commit is contained in:
Zeno Rogue 2018-01-06 23:02:33 +01:00
parent 7ee12bccc1
commit f32eec47f3

View File

@ -7057,9 +7057,12 @@ void monstersTurn() {
if(!phase1) ca::simulate();
if(!phase1) heat::processfires();
for(cell *c: crush_now)
if(canAttack(c, moCrusher, c, c->monst, AF_GETPLAYER | AF_CRUSH))
for(cell *c: crush_now) {
playSound(NULL, "closegate");
if(canAttack(c, moCrusher, c, c->monst, AF_GETPLAYER | AF_CRUSH)) {
attackMonster(c, AF_MSG | AF_GETPLAYER | AF_CRUSH, moCrusher);
}
}
crush_now = move(crush_next);
crush_next.clear();