mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
added a confirmation prompt to the borg deathsquad pc
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3385 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -970,30 +970,31 @@ var/global/datum/tension/tension_master
|
||||
/obj/machinery/computer/Borg_station/attack_hand()
|
||||
if(jumpcomplete)
|
||||
return
|
||||
var/area/start_location = locate(/area/borg_deathsquad/start)
|
||||
var/area/end_location = locate(/area/borg_deathsquad/station)
|
||||
if(alert(usr, "Are you sure you want to send a cyborg deathsquad?", "Confirmation", "Yes", "No") == "Yes")
|
||||
var/area/start_location = locate(/area/borg_deathsquad/start)
|
||||
var/area/end_location = locate(/area/borg_deathsquad/station)
|
||||
|
||||
var/list/dstturfs = list()
|
||||
var/throwy = world.maxy
|
||||
var/list/dstturfs = list()
|
||||
var/throwy = world.maxy
|
||||
|
||||
for(var/turf/T in end_location)
|
||||
dstturfs += T
|
||||
if(T.y < throwy)
|
||||
throwy = T.y
|
||||
for(var/turf/T in end_location)
|
||||
dstturfs += T
|
||||
if(T.y < throwy)
|
||||
throwy = T.y
|
||||
|
||||
// hey you, get out of the way!
|
||||
for(var/turf/T in dstturfs)
|
||||
// find the turf to move things to
|
||||
var/turf/D = locate(T.x, throwy - 1, 1)
|
||||
//var/turf/E = get_step(D, SOUTH)
|
||||
for(var/atom/movable/AM as mob|obj in T)
|
||||
AM.Move(D)
|
||||
if(istype(T, /turf/simulated))
|
||||
del(T)
|
||||
// hey you, get out of the way!
|
||||
for(var/turf/T in dstturfs)
|
||||
// find the turf to move things to
|
||||
var/turf/D = locate(T.x, throwy - 1, 1)
|
||||
//var/turf/E = get_step(D, SOUTH)
|
||||
for(var/atom/movable/AM as mob|obj in T)
|
||||
AM.Move(D)
|
||||
if(istype(T, /turf/simulated))
|
||||
del(T)
|
||||
|
||||
start_location.move_contents_to(end_location)
|
||||
start_location.move_contents_to(end_location)
|
||||
|
||||
for(var/obj/machinery/door/poddoor/P in end_location)
|
||||
P.open()
|
||||
jumpcomplete = 1
|
||||
command_alert("DRADIS contact! Set condition one throughout the station!")
|
||||
for(var/obj/machinery/door/poddoor/P in end_location)
|
||||
P.open()
|
||||
jumpcomplete = 1
|
||||
command_alert("DRADIS contact! Set condition one throughout the station!")
|
||||
|
||||
Reference in New Issue
Block a user