Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 12 additions & 20 deletions code/modules/admin/verbs/randomverbs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,13 @@

if(!istype(overmap_location)) // Sanity check
return
var/confirm = alert(src, "Do you want to create a distress signal for [overmap_location.name] [overmap_location.docked_to ? "docked to [overmap_location.docked_to]" : "at ([overmap_location.x], [overmap_location.y])"]?", "Distress Signal", "Yes", "No")

switch(confirm)
if("Yes")
var/distress_message = input(src, "Input any information you'd like attached with the distress signal.", "Distress Signal Message")
if(distress_message)
create_distress_beacon(overmap_location, distress_message)
else
create_distress_beacon(overmap_location)
if("No")
var/distress_message = input(src, "Input any information you'd like attached with the distress signal.", "Distress Signal Message")
if(tgui_alert(src,"Do you want to create a distress signal for [overmap_location.name] [overmap_location.docked_to ? "docked to [overmap_location.docked_to]" : "at ([overmap_location.x], [overmap_location.y])"]?","Distress Signal",list("Yes","No")) == "Yes")
if(distress_message)
create_distress_beacon(overmap_location, distress_message)
else
create_distress_beacon(overmap_location)
return

/client/proc/cmd_admin_distress_signal_here()
Expand All @@ -401,17 +398,12 @@
if(!overmap_location && !istype(overmap_location))
return

var/confirm = alert(src, "Do you want to create a distress signal for [overmap_location.name] [overmap_location.docked_to ? "docked to [overmap_location.docked_to]" : "at ([overmap_location.x], [overmap_location.y])"]?", "Distress Signal", "Yes", "No")

switch(confirm)
if("Yes")
var/distress_message = input(src, "Input any information you'd like attached with the distress signal.", "Distress Signal Message")
if(distress_message)
create_distress_beacon(overmap_location, distress_message)
else
create_distress_beacon(overmap_location)
if("No")
return
var/distress_message = input(src, "Input any information you'd like attached with the distress signal.", "Distress Signal Message")
if(tgui_alert(src,"Do you want to create a distress signal for [overmap_location.name] [overmap_location.docked_to ? "docked to [overmap_location.docked_to]" : "at ([overmap_location.x], [overmap_location.y])"]?","Distress Signal",list("Yes","No"),0) == "Yes")
if(distress_message)
create_distress_beacon(overmap_location, distress_message)
else
create_distress_beacon(overmap_location)

/client/proc/cmd_admin_delete(atom/A as obj|mob|turf in world)
set category = "Debug"
Expand Down
Loading