mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-07 22:49:54 +00:00
Merge pull request #365 from jlmjlm/ec-elec
Change some walls' electrical properties.
This commit is contained in:
commit
b71cd1e44d
@ -215,10 +215,14 @@ EX namespace elec {
|
||||
if(c->wall == waSea || c->wall == waGrounded) return ecGrounded;
|
||||
if(c->wall == waSandstone || c->wall == waDeadTroll ||
|
||||
c->wall == waDeadTroll2 ||
|
||||
among(c->wall, waBigTree, waSmallTree, waExplosiveBarrel, waRed1, waRed2, waRed3) ||
|
||||
c->wall == waExplosiveBarrel ||
|
||||
c->wall == waVinePlant ||
|
||||
c->wall == waMetal || isAlchAny(c))
|
||||
return isElectricLand(c) ? ecConductor : ecGrounded;
|
||||
if(c->wall == waBigTree || c->wall == waSmallTree)
|
||||
return ecGrounded;
|
||||
if(among(c->wall, waRed1, waRed2, waRed3, waRubble, waDeadfloor2))
|
||||
return ecIsolator;
|
||||
if(c->wall == waBarrier)
|
||||
return ecIsolator;
|
||||
if(c->wall == waChasm)
|
||||
|
Loading…
Reference in New Issue
Block a user