mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 16:14:13 +00:00
@@ -29,13 +29,16 @@
|
||||
if(cooldown - world.time > 0)
|
||||
to_chat(user, "<span class='notice'>The Low Orbit Ion Cannon is still on cooldown.</span>")
|
||||
return
|
||||
if(!is_type_in_list(get_area(src), the_station_areas))
|
||||
to_chat(user, "The remote can't establish a connection. You need to be on the station.")
|
||||
return
|
||||
if(alert(user, "A cryptic message appears on the screen: \"Activate the Low Orbit Ion-Cannon?\".", name, "Yes", "No") != "Yes")
|
||||
return
|
||||
if(user.incapacitated() || !Adjacent(user))
|
||||
return
|
||||
if(!is_type_in_list(get_area(src), the_station_areas))
|
||||
to_chat(user, "The remote can't establish a connection. You need to be on the station.")
|
||||
return
|
||||
if(cooldown - world.time > 0) //check again for the cooldown in case people prep a bunch of popups
|
||||
to_chat(user, "<span class='notice'>The Low Orbit Ion Cannon is still on cooldown.</span>")
|
||||
return
|
||||
generate_ion_law()
|
||||
command_alert(/datum/command_alert/ion_storm_malicious)
|
||||
cooldown = world.time + 15 MINUTES
|
||||
|
||||
Reference in New Issue
Block a user