mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 17:13:46 +01:00
Reduce lines by removing blank lines added by PJ's script
This commit is contained in:
@@ -115,7 +115,6 @@
|
||||
holder = new/obj/item/device/assembly_holder(get_turf(src))
|
||||
if(holder.attach(A,src,user))
|
||||
to_chat(user, "\blue You attach \the [A] to \the [src]!")
|
||||
|
||||
return 1
|
||||
return 0
|
||||
|
||||
@@ -129,10 +128,8 @@
|
||||
if(istype(W, /obj/item/weapon/screwdriver))
|
||||
if(toggle_secure())
|
||||
to_chat(user, "\blue \The [src] is ready!")
|
||||
|
||||
else
|
||||
to_chat(user, "\blue \The [src] can now be attached!")
|
||||
|
||||
return
|
||||
..()
|
||||
return
|
||||
@@ -148,12 +145,10 @@
|
||||
if((in_range(src, user) || loc == user))
|
||||
if(secured)
|
||||
to_chat(user, "\The [src] is ready!")
|
||||
|
||||
else
|
||||
to_chat(user, "\The [src] can be attached!")
|
||||
|
||||
|
||||
|
||||
attack_self(mob/user as mob)
|
||||
if(!user) return 0
|
||||
user.set_machine(src)
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
|
||||
to_chat(user, "<span class='notice'>You disassemble [src].</span>")
|
||||
|
||||
|
||||
bombassembly.loc = user.loc
|
||||
bombassembly.master = null
|
||||
bombassembly = null
|
||||
@@ -48,12 +47,10 @@
|
||||
bombers += "[key_name(user)] welded a single tank bomb. Temperature: [bombtank.air_contents.temperature-T0C]"
|
||||
msg_admin_attack("[key_name_admin(user)] welded a single tank bomb. Temperature: [bombtank.air_contents.temperature-T0C]")
|
||||
to_chat(user, "<span class='notice'>A pressure hole has been bored to [bombtank] valve. \The [bombtank] can now be ignited.</span>")
|
||||
|
||||
else
|
||||
status = 0
|
||||
bombers += "[key_name(user)] unwelded a single tank bomb. Temperature: [bombtank.air_contents.temperature-T0C]"
|
||||
to_chat(user, "<span class='notice'>The hole has been closed.</span>")
|
||||
|
||||
add_fingerprint(user)
|
||||
..()
|
||||
|
||||
|
||||
@@ -71,12 +71,10 @@
|
||||
if ((in_range(src, user) || src.loc == user))
|
||||
if (src.secured)
|
||||
to_chat(user, "\The [src] is ready!")
|
||||
|
||||
else
|
||||
to_chat(user, "\The [src] can be attached!")
|
||||
|
||||
|
||||
|
||||
HasProximity(atom/movable/AM as mob|obj)
|
||||
if(a_left)
|
||||
a_left.HasProximity(AM)
|
||||
@@ -143,17 +141,14 @@
|
||||
if(istype(W, /obj/item/weapon/screwdriver))
|
||||
if(!a_left || !a_right)
|
||||
to_chat(user, "\red BUG:Assembly part missing, please report this!")
|
||||
|
||||
return
|
||||
a_left.toggle_secure()
|
||||
a_right.toggle_secure()
|
||||
secured = !secured
|
||||
if(secured)
|
||||
to_chat(user, "\blue \The [src] is ready!")
|
||||
|
||||
else
|
||||
to_chat(user, "\blue \The [src] can now be taken apart!")
|
||||
|
||||
update_icon()
|
||||
return
|
||||
else
|
||||
@@ -166,7 +161,6 @@
|
||||
if(src.secured)
|
||||
if(!a_left || !a_right)
|
||||
to_chat(user, "\red Assembly part missing!")
|
||||
|
||||
return
|
||||
if(istype(a_left,a_right.type))//If they are the same type it causes issues due to window code
|
||||
switch(alert("Which side would you like to use?",,"Left","Right"))
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
if(armed)
|
||||
to_chat(user, "It looks like it's armed.")
|
||||
|
||||
|
||||
activate()
|
||||
if(..())
|
||||
armed = !armed
|
||||
@@ -22,7 +21,6 @@
|
||||
var/mob/living/carbon/human/user = usr
|
||||
if(((user.getBrainLoss() >= 60 || (CLUMSY in user.mutations)) && prob(50)))
|
||||
to_chat(user, "Your hand slips, setting off the trigger.")
|
||||
|
||||
pulse(0)
|
||||
update_icon()
|
||||
if(usr)
|
||||
@@ -71,7 +69,6 @@
|
||||
attack_self(mob/living/user as mob)
|
||||
if(!armed)
|
||||
to_chat(user, "<span class='notice'>You arm [src].</span>")
|
||||
|
||||
else
|
||||
if(((user.getBrainLoss() >= 60 || (CLUMSY in user.mutations)) && prob(50)))
|
||||
var/which_hand = "l_hand"
|
||||
@@ -82,7 +79,6 @@
|
||||
"<span class='warning'>You accidentally trigger [src]!</span>")
|
||||
return
|
||||
to_chat(user, "<span class='notice'>You disarm [src].</span>")
|
||||
|
||||
armed = !armed
|
||||
update_icon()
|
||||
playsound(user.loc, 'sound/weapons/handcuffs.ogg', 30, 1, -3)
|
||||
@@ -147,4 +143,3 @@
|
||||
|
||||
layer = TURF_LAYER+0.2
|
||||
to_chat(usr, "<span class='notice'>You hide [src].</span>")
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
if(istype(W, /obj/item/weapon/screwdriver))
|
||||
status = !status
|
||||
to_chat(user, "<span class='notice'>[src] is now [status ? "secured" : "unsecured"]!</span>")
|
||||
|
||||
add_fingerprint(user)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user