Merge pull request #18726 from coiax/spawn-removal-1

Removes spawn() from things I
This commit is contained in:
oranges
2016-06-21 09:56:38 +12:00
committed by GitHub
3 changed files with 29 additions and 19 deletions
+4 -5
View File
@@ -8,17 +8,16 @@
/obj/machinery/computer/shuttle/ferry/request
name = "ferry console"
circuit = /obj/item/weapon/circuitboard/computer/ferry/request
var/cooldown //prevents spamming admins
var/last_request //prevents spamming admins
var/cooldown = 600
possible_destinations = "ferry_home"
admin_controlled = 1
/obj/machinery/computer/shuttle/ferry/request/Topic(href, href_list)
..()
if(href_list["request"])
if(cooldown)
if(last_request && (last_request + cooldown > world.time))
return
cooldown = 1
last_request = world.time
usr << "<span class='notice'>Your request has been recieved by Centcom.</span>"
admins << "<b>FERRY: <font color='blue'>[key_name_admin(usr)] (<A HREF='?_src_=holder;adminmoreinfo=\ref[usr]'>?</A>) (<A HREF='?_src_=holder;adminplayerobservefollow=\ref[usr]'>FLW</A>) (<A HREF='?_src_=holder;secrets=moveferry'>Move Ferry</a>)</b> is requesting to move the transport ferry to Centcom.</font>"
spawn(600) //One minute cooldown
cooldown = 0