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
1 changed files with 4 additions and 0 deletions

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; */
}