mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
Makes it possible to see tiles past z transitions
This commit is contained in:
@@ -125,3 +125,19 @@
|
||||
S.destination_x = x_pos_transition[side] == 1 ? S.x : x_pos_transition[side]
|
||||
S.destination_y = y_pos_transition[side] == 1 ? S.y : y_pos_transition[side]
|
||||
S.destination_z = zdestination
|
||||
|
||||
// Mirage border code
|
||||
var/mirage_dir
|
||||
if(S.x == 1 + TRANSITIONEDGE)
|
||||
mirage_dir |= WEST
|
||||
else if(S.x == world.maxx - TRANSITIONEDGE)
|
||||
mirage_dir |= EAST
|
||||
if(S.y == 1 + TRANSITIONEDGE)
|
||||
mirage_dir |= SOUTH
|
||||
else if(S.y == world.maxy - TRANSITIONEDGE)
|
||||
mirage_dir |= NORTH
|
||||
if(!mirage_dir)
|
||||
continue
|
||||
|
||||
var/turf/place = locate(S.destination_x, S.destination_y, S.destination_z)
|
||||
S.AddComponent(/datum/component/mirage_border, place, mirage_dir)
|
||||
|
||||
Reference in New Issue
Block a user