mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
Reduce lines by removing blank lines added by PJ's script
This commit is contained in:
@@ -20,18 +20,15 @@
|
||||
W = pda.id
|
||||
if (!W:access) //no access
|
||||
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
|
||||
|
||||
return
|
||||
|
||||
var/list/cardaccess = W:access
|
||||
if(!istype(cardaccess, /list) || !cardaccess.len) //no access
|
||||
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
|
||||
|
||||
return
|
||||
|
||||
if(!(access_heads in W:access)) //doesn't have this access
|
||||
to_chat(user, "The access level of [W:registered_name]\'s card is not high enough. ")
|
||||
|
||||
return 0
|
||||
|
||||
var/choice = alert(user, text("Would you like to (un)authorize a shortened launch time? [] authorization\s are still needed. Use abort to cancel all authorizations.", src.auth_need - src.authorized.len), "Shuttle Launch", "Authorize", "Repeal", "Abort")
|
||||
@@ -45,12 +42,10 @@
|
||||
message_admins("[key_name_admin(user)] has authorized early shuttle launch")
|
||||
log_game("[user.ckey] has authorized early shuttle launch")
|
||||
to_chat(world, text("\blue <B>Alert: [] authorizations needed until shuttle is launched early</B>", src.auth_need - src.authorized.len))
|
||||
|
||||
else
|
||||
message_admins("[key_name_admin(user)] has launched the shuttle")
|
||||
log_game("[user.ckey] has launched the shuttle early")
|
||||
to_chat(world, "\blue <B>Alert: Shuttle launch time shortened to 10 seconds!</B>")
|
||||
|
||||
emergency_shuttle.online = 1
|
||||
emergency_shuttle.settimeleft(10)
|
||||
//src.authorized = null
|
||||
@@ -61,10 +56,8 @@
|
||||
src.authorized -= W:registered_name
|
||||
to_chat(world, text("\blue <B>Alert: [] authorizations needed until shuttle is launched early</B>", src.auth_need - src.authorized.len))
|
||||
|
||||
|
||||
if("Abort")
|
||||
to_chat(world, "\blue <B>All authorizations to shorting time for shuttle launch have been revoked!</B>")
|
||||
|
||||
src.authorized.len = 0
|
||||
src.authorized = list( )
|
||||
return
|
||||
@@ -77,7 +70,6 @@
|
||||
switch(choice)
|
||||
if("Launch")
|
||||
to_chat(world, "\blue <B>Alert: Shuttle launch time shortened to 10 seconds!</B>")
|
||||
|
||||
emergency_shuttle.settimeleft( 10 )
|
||||
emagged = 1
|
||||
if("Cancel")
|
||||
|
||||
Reference in New Issue
Block a user