ajout précision tp
This commit is contained in:
parent
a75f5298a0
commit
f89fe10318
@ -73,6 +73,8 @@ class Map:
|
|||||||
if teleporter_count: # not all teleporters are on edges
|
if teleporter_count: # not all teleporters are on edges
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
### ATTENTION - we need to verify teleporters are in front of the other
|
||||||
|
|
||||||
# no ground tile on border
|
# no ground tile on border
|
||||||
if any(Tile.GRD in edges):
|
if any(Tile.GRD in edges):
|
||||||
return False
|
return False
|
||||||
@ -90,4 +92,4 @@ class Map:
|
|||||||
return False
|
return False
|
||||||
# we have to verify if there is only 1 connexity component of (Tile.GRD, Tile.TPT, Tile.BPD, Tile.SPD)
|
# we have to verify if there is only 1 connexity component of (Tile.GRD, Tile.TPT, Tile.BPD, Tile.SPD)
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user