mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-30 01:07:57 +00:00
added CAP_COMPLEX2 guards
This commit is contained in:
@@ -424,13 +424,17 @@ EX void explosion(cell *c, int power, int central) {
|
||||
playSound(c, "explosion");
|
||||
drawFireParticles(c, 30, 150);
|
||||
|
||||
#if CAP_COMPLEX2
|
||||
brownian::dissolve_brownian(c, 2);
|
||||
#endif
|
||||
makeflame(c, central, false);
|
||||
|
||||
forCellEx(c2, c) {
|
||||
changes.ccell(c2);
|
||||
destroyTrapsOn(c2);
|
||||
#if CAP_COMPLEX2
|
||||
brownian::dissolve_brownian(c2, 1);
|
||||
#endif
|
||||
if(c2->wall == waRed2 || c2->wall == waRed3)
|
||||
c2->wall = waRed1;
|
||||
else if(c2->wall == waDeadTroll || c2->wall == waDeadTroll2 || c2->wall == waPetrified || c2->wall == waGargoyle) {
|
||||
@@ -468,7 +472,9 @@ EX void explodeMine(cell *c) {
|
||||
changes.ccell(c);
|
||||
c->wall = waMineOpen;
|
||||
explosion(c, 20, 20);
|
||||
#if CAP_COMPLEX2
|
||||
mine::auto_teleport_charges();
|
||||
#endif
|
||||
}
|
||||
|
||||
EX void explodeBarrel(cell *c) {
|
||||
|
Reference in New Issue
Block a user