mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-21 20:13:45 +01:00
Reduce lines by removing blank lines added by PJ's script
This commit is contained in:
@@ -135,7 +135,6 @@
|
||||
src.add_fingerprint(usr)
|
||||
if(!src.allowed(user))
|
||||
to_chat(user, "<span class='alert'>Access denied.</span>")
|
||||
|
||||
return
|
||||
usr.set_machine(src)
|
||||
interact(user)
|
||||
@@ -160,7 +159,6 @@
|
||||
return ..()
|
||||
if (on)
|
||||
to_chat(user, "<span class='alert'>You cannot unwrench this [src], turn it off first.</span>")
|
||||
|
||||
return 1
|
||||
return ..()
|
||||
|
||||
@@ -158,7 +158,6 @@ Thus, the two variables affect pump operation are set in New():
|
||||
src.add_fingerprint(usr)
|
||||
if(!src.allowed(user))
|
||||
to_chat(user, "<span class='alert'>Access denied.</span>")
|
||||
|
||||
return
|
||||
usr.set_machine(src)
|
||||
interact(user)
|
||||
@@ -190,6 +189,5 @@ Thus, the two variables affect pump operation are set in New():
|
||||
return ..()
|
||||
if (!(stat & NOPOWER) && on)
|
||||
to_chat(user, "<span class='alert'>You cannot unwrench this [src], turn it off first.</span>")
|
||||
|
||||
return 1
|
||||
return ..()
|
||||
@@ -75,7 +75,6 @@
|
||||
return
|
||||
if(!src.allowed(user))
|
||||
to_chat(user, "<span class='alert'>Access denied.</span>")
|
||||
|
||||
return
|
||||
..()
|
||||
|
||||
|
||||
@@ -148,7 +148,6 @@ Thus, the two variables affect pump operation are set in New():
|
||||
src.add_fingerprint(usr)
|
||||
if(!src.allowed(user))
|
||||
to_chat(user, "<span class='alert'>Access denied.</span>")
|
||||
|
||||
return
|
||||
usr.set_machine(src)
|
||||
interact(user)
|
||||
@@ -180,6 +179,5 @@ Thus, the two variables affect pump operation are set in New():
|
||||
return ..()
|
||||
if (!(stat & NOPOWER) && on)
|
||||
to_chat(user, "<span class='alert'>You cannot unwrench this [src], turn it off first.</span>")
|
||||
|
||||
return 1
|
||||
return ..()
|
||||
@@ -105,12 +105,10 @@
|
||||
var/datum/gas_mixture/env_air = loc.return_air()
|
||||
if ((int_pressure - env_air.return_pressure()) > 2*ONE_ATMOSPHERE)
|
||||
to_chat(user, "<span class='danger'>You cannot unwrench [src], it is too exerted due to internal pressure.</span>")
|
||||
|
||||
add_fingerprint(user)
|
||||
return 1
|
||||
playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1)
|
||||
to_chat(user, "<span class='notice'>You begin to unfasten \the [src]...</span>")
|
||||
|
||||
if(do_after(user, 40, target = src))
|
||||
user.visible_message( \
|
||||
"[user] unfastens \the [src].", \
|
||||
|
||||
@@ -154,7 +154,6 @@ Filter types:
|
||||
|
||||
if(!src.allowed(user))
|
||||
to_chat(user, "<span class='alert'>Access denied.</span>")
|
||||
|
||||
return
|
||||
|
||||
var/dat
|
||||
|
||||
@@ -115,7 +115,6 @@
|
||||
src.add_fingerprint(usr)
|
||||
if(!src.allowed(user))
|
||||
to_chat(user, "<span class='alert'>Access denied.</span>")
|
||||
|
||||
return
|
||||
usr.set_machine(src)
|
||||
var/dat = {"<b>Power: </b><a href='?src=\ref[src];power=1'>[on?"On":"Off"]</a><br>
|
||||
|
||||
@@ -136,7 +136,6 @@
|
||||
return
|
||||
if(!src.allowed(user))
|
||||
to_chat(user, "<span class='alert'>Access denied.</span>")
|
||||
|
||||
return
|
||||
..()
|
||||
|
||||
|
||||
@@ -172,7 +172,6 @@
|
||||
if(istype(W, /obj/item/weapon/wrench))
|
||||
if (!(stat & NOPOWER) && on)
|
||||
to_chat(user, "<span class='danger'>You cannot unwrench this [src], turn if off first.</span>")
|
||||
|
||||
return 1
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
if(istype(W, /obj/item/weapon/wrench))
|
||||
if(connected_device)
|
||||
to_chat(user, "<span class='danger'>You cannot unwrench this [src], detach [connected_device] first.</span>")
|
||||
|
||||
return 1
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -323,7 +323,6 @@
|
||||
var/obj/item/weapon/weldingtool/WT = W
|
||||
if (WT.remove_fuel(0,user))
|
||||
to_chat(user, "<span class='notice'>Now welding the vent.</span>")
|
||||
|
||||
if(do_after(user, 20, target = src))
|
||||
if(!src || !WT.isOn()) return
|
||||
playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1)
|
||||
@@ -338,22 +337,18 @@
|
||||
else
|
||||
|
||||
to_chat(user, "<span class='notice'>The welding tool needs to be on to start this task.</span>")
|
||||
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You need more welding fuel to complete this task.</span>")
|
||||
|
||||
return 1
|
||||
if(istype(W, /obj/item/weapon/screwdriver))
|
||||
if(!welded)
|
||||
if(open)
|
||||
to_chat(user, "<span class='notice'> Now closing the vent.</span>")
|
||||
|
||||
if (do_after(user, 20, target = src))
|
||||
open = 0
|
||||
user.visible_message("[user] screwdrivers the vent shut.", "You screwdriver the vent shut.", "You hear a screwdriver.")
|
||||
else
|
||||
to_chat(user, "<span class='notice'> Now opening the vent.</span>")
|
||||
|
||||
if (do_after(user, 20, target = src))
|
||||
open = 1
|
||||
user.visible_message("[user] screwdrivers the vent shut.", "You screwdriver the vent shut.", "You hear a screwdriver.")
|
||||
@@ -365,10 +360,8 @@
|
||||
W.forceMove(src)
|
||||
if(!open)
|
||||
to_chat(user, "You can't shove that down there when it is closed")
|
||||
|
||||
else
|
||||
to_chat(user, "The vent is welded.")
|
||||
|
||||
return
|
||||
if(istype(W, /obj/item/device/multitool))
|
||||
update_multitool_menu(user)
|
||||
@@ -376,7 +369,6 @@
|
||||
if (istype(W, /obj/item/weapon/wrench))
|
||||
if (!(stat & NOPOWER) && on)
|
||||
to_chat(user, "<span class='danger'>You cannot unwrench this [src], turn it off first.</span>")
|
||||
|
||||
return 1
|
||||
|
||||
return ..()
|
||||
@@ -393,7 +385,6 @@
|
||||
if(welded)
|
||||
to_chat(user, "It seems welded shut.")
|
||||
|
||||
|
||||
/obj/machinery/atmospherics/unary/vent_pump/power_change()
|
||||
var/old_stat = stat
|
||||
..()
|
||||
|
||||
@@ -60,7 +60,6 @@
|
||||
if(welded)
|
||||
to_chat(user, "It seems welded shut.")
|
||||
|
||||
|
||||
/obj/machinery/atmospherics/unary/vent_scrubber/auto_use_power()
|
||||
if(!powered(power_channel))
|
||||
return 0
|
||||
@@ -374,7 +373,6 @@
|
||||
var/obj/item/weapon/weldingtool/WT = W
|
||||
if (WT.remove_fuel(0,user))
|
||||
to_chat(user, "<span class='notice'>Now welding the scrubber.</span>")
|
||||
|
||||
if(do_after(user, 20, target = src))
|
||||
if(!src || !WT.isOn()) return
|
||||
playsound(get_turf(src), 'sound/items/Welder2.ogg', 50, 1)
|
||||
@@ -388,11 +386,9 @@
|
||||
update_icon()
|
||||
else
|
||||
to_chat(user, "<span class='notice'>The welding tool needs to be on to start this task.</span>")
|
||||
|
||||
return 1
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You need more welding fuel to complete this task.</span>")
|
||||
|
||||
return 1
|
||||
if(istype(W, /obj/item/device/multitool))
|
||||
update_multitool_menu(user)
|
||||
@@ -400,7 +396,6 @@
|
||||
if (istype(W, /obj/item/weapon/wrench))
|
||||
if (!(stat & NOPOWER) && on)
|
||||
to_chat(user, "<span class='danger'>You cannot unwrench this [src], turn it off first.</span>")
|
||||
|
||||
return 1
|
||||
|
||||
return ..()
|
||||
|
||||
Reference in New Issue
Block a user