Merge remote-tracking branch 'ParadiseSS13/master' into brutal-part1

This commit is contained in:
AffectedArc07
2021-03-11 18:41:17 +00:00
1118 changed files with 25570 additions and 65816 deletions
+8 -5
View File
@@ -249,8 +249,9 @@
if(time_left <= 50 && !sound_played) //4 seconds left - should sync up with the launch
sound_played = 1
var/hyperspace_sound = sound('sound/effects/hyperspace_begin.ogg')
for(var/area/shuttle/escape/E in world)
E << 'sound/effects/hyperspace_begin.ogg'
SEND_SOUND(E, hyperspace_sound)
if(time_left <= 0 && !SSshuttle.emergencyNoEscape)
//move each escape pod to its corresponding transit dock
@@ -258,8 +259,9 @@
if(is_station_level(M.z)) //Will not launch from the mine/planet
M.enterTransit()
//now move the actual emergency shuttle to its transit dock
var/hyperspace_progress_sound = sound('sound/effects/hyperspace_progress.ogg')
for(var/area/shuttle/escape/E in world)
E << 'sound/effects/hyperspace_progress.ogg'
SEND_SOUND(E, hyperspace_progress_sound)
enterTransit()
mode = SHUTTLE_ESCAPE
timer = world.time
@@ -274,8 +276,9 @@
for(var/obj/docking_port/mobile/pod/M in SSshuttle.mobile)
M.dock(SSshuttle.getDock("[M.id]_away"))
var/hyperspace_end_sound = sound('sound/effects/hyperspace_end.ogg')
for(var/area/shuttle/escape/E in world)
E << 'sound/effects/hyperspace_end.ogg'
SEND_SOUND(E, hyperspace_end_sound)
// now move the actual emergency shuttle to centcomm
// unless the shuttle is "hijacked"
@@ -309,8 +312,8 @@
width = 3
height = 4
/obj/docking_port/mobile/pod/New()
..()
/obj/docking_port/mobile/pod/Initialize(mapload)
. = ..()
if(id == "pod")
WARNING("[type] id has not been changed from the default. Use the id convention \"pod1\" \"pod2\" etc.")
+10 -13
View File
@@ -168,8 +168,8 @@
/obj/docking_port/stationary/register()
if(!SSshuttle)
throw EXCEPTION("docking port [src] could not initialize.")
return 0
stack_trace("Docking port [src] could not initialize. SSshuttle doesnt exist!")
return FALSE
SSshuttle.stationary += src
if(!id)
@@ -229,9 +229,8 @@
var/obj/docking_port/stationary/destination
var/obj/docking_port/stationary/previous
/obj/docking_port/mobile/New()
..()
/obj/docking_port/mobile/Initialize(mapload)
. = ..()
var/area/A = get_area(src)
if(istype(A, /area/shuttle))
areaInstance = A
@@ -245,7 +244,6 @@
highlight("#0f0")
#endif
/obj/docking_port/mobile/Initialize()
if(!timid)
register()
shuttle_areas = list()
@@ -255,12 +253,10 @@
var/area/cur_area = curT.loc
if(istype(cur_area, areaInstance))
shuttle_areas[cur_area] = TRUE
..()
/obj/docking_port/mobile/register()
if(!SSshuttle)
throw EXCEPTION("docking port [src] could not initialize.")
return 0
CRASH("Docking port [src] could not initialize. SSshuttle doesnt exist!")
SSshuttle.mobile += src
@@ -322,7 +318,7 @@
else
var/msg = "check_dock(): shuttle [src] cannot dock at [S], error: [status]"
message_admins(msg)
throw EXCEPTION(msg)
stack_trace(msg)
return FALSE
@@ -957,8 +953,9 @@
T.icon_state = icon_state
if(T.icon != icon)
T.icon = icon
if(T.color != color)
T.color = color
if(color)
T.atom_colours = atom_colours.Copy()
T.update_atom_colour()
if(T.dir != dir)
T.dir = dir
T.setDir(dir)
return T