Make red teleporters count as wired if they neighbor a logic gate

This commit is contained in:
Eevee (Evelyn Woods) 2021-03-13 18:05:29 -07:00
parent 5384561413
commit d251955684

View File

@ -2387,6 +2387,13 @@ export class Level extends LevelInterface {
if (! neighbor)
continue;
let terrain = neighbor.get_terrain();
if (terrain.type.name === 'logic_gate' &&
terrain.type.get_wires(terrain).includes(dirinfo.opposite))
{
return true;
}
let wired = neighbor.get_wired_tile();
if (! wired)
continue;