1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-02-02 12:19:18 +00:00

elec: charged walls are destroyed if they are adjacent to grounded walls

This commit is contained in:
Zeno Rogue 2020-03-02 17:51:17 +01:00
parent 97d47c06fe
commit 10f63743ab

View File

@ -359,6 +359,10 @@ EX namespace elec {
if(c->wall == waDeadTroll2 || isAlchAny(c) || c->wall == waVinePlant)
drawParticles(c, winf[c->wall].color, 16),
c->wall = waNone;
/* destroy charged walls on the border */
if(c->wall == waCharged) forCellEx(c1, c) if(c1->wall == waGrounded)
c->wall = waNone;
/* if(c->wall == waCharged)
c->wall = waMetal; */
}