mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Changes /turf/space/transit icons in map editor
So a mapper can actually see what the hell he's doing. Also added south and west tiles while I was at it.
This commit is contained in:
@@ -20,7 +20,10 @@
|
|||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
//------------------------
|
||||||
|
|
||||||
/turf/space/transit/north // moving to the north
|
/turf/space/transit/north // moving to the north
|
||||||
|
icon_state = "arrow-north"
|
||||||
pushdirection = SOUTH // south because the space tile is scrolling south
|
pushdirection = SOUTH // south because the space tile is scrolling south
|
||||||
var/static/list/phase_shift_by_x
|
var/static/list/phase_shift_by_x
|
||||||
|
|
||||||
@@ -33,8 +36,28 @@
|
|||||||
var/transit_state = (world.maxy - src.y + x_shift)%15 + 1
|
var/transit_state = (world.maxy - src.y + x_shift)%15 + 1
|
||||||
|
|
||||||
icon_state = "speedspace_ns_[transit_state]"
|
icon_state = "speedspace_ns_[transit_state]"
|
||||||
|
//------------------------
|
||||||
|
|
||||||
|
/turf/space/transit/south // moving to the south
|
||||||
|
icon_state = "arrow-south"
|
||||||
|
pushdirection = SOUTH // south because the space tile is scrolling south
|
||||||
|
var/static/list/phase_shift_by_x
|
||||||
|
|
||||||
|
/turf/space/transit/south/New()
|
||||||
|
..()
|
||||||
|
if(!phase_shift_by_x)
|
||||||
|
phase_shift_by_x = get_cross_shift_list(15)
|
||||||
|
|
||||||
|
var/x_shift = phase_shift_by_x[src.x % (phase_shift_by_x.len - 1) + 1]
|
||||||
|
var/transit_state = (world.maxy - src.y + x_shift)%15 + 1
|
||||||
|
|
||||||
|
var/icon/I = new(icon, "speedspace_ns_[transit_state]")
|
||||||
|
I.Flip(SOUTH)
|
||||||
|
icon = I
|
||||||
|
//------------------------
|
||||||
|
|
||||||
/turf/space/transit/east // moving to the east
|
/turf/space/transit/east // moving to the east
|
||||||
|
icon_state = "arrow-east"
|
||||||
pushdirection = WEST
|
pushdirection = WEST
|
||||||
var/static/list/phase_shift_by_y
|
var/static/list/phase_shift_by_y
|
||||||
|
|
||||||
@@ -47,3 +70,23 @@
|
|||||||
var/transit_state = (world.maxx - src.x + y_shift)%15 + 1
|
var/transit_state = (world.maxx - src.x + y_shift)%15 + 1
|
||||||
|
|
||||||
icon_state = "speedspace_ew_[transit_state]"
|
icon_state = "speedspace_ew_[transit_state]"
|
||||||
|
//------------------------
|
||||||
|
|
||||||
|
/turf/space/transit/west // moving to the west
|
||||||
|
icon_state = "arrow-west"
|
||||||
|
pushdirection = WEST
|
||||||
|
var/static/list/phase_shift_by_y
|
||||||
|
|
||||||
|
/turf/space/transit/west/New()
|
||||||
|
..()
|
||||||
|
if(!phase_shift_by_y)
|
||||||
|
phase_shift_by_y = get_cross_shift_list(15)
|
||||||
|
|
||||||
|
var/y_shift = phase_shift_by_y[src.y % (phase_shift_by_y.len - 1) + 1]
|
||||||
|
var/transit_state = (world.maxx - src.x + y_shift)%15 + 1
|
||||||
|
|
||||||
|
var/icon/I = new(icon, "speedspace_ew_[transit_state]")
|
||||||
|
I.Flip(WEST)
|
||||||
|
icon = I
|
||||||
|
|
||||||
|
//------------------------
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 124 KiB After Width: | Height: | Size: 124 KiB |
Reference in New Issue
Block a user