Code improvement

This commit is contained in:
Arkatos1
2019-04-22 18:43:17 +02:00
parent b00c44d701
commit cc35fb8b0c
4 changed files with 12 additions and 8 deletions
@@ -29,6 +29,7 @@ Thus, the two variables affect pump operation are set in New():
var/datum/radio_frequency/radio_connection
/obj/machinery/atmospherics/binary/pump/CtrlClick(mob/living/user)
..()
if(!istype(user) || user.incapacitated())
to_chat(user, "<span class='warning'>You can't do that right now!</span>")
return
@@ -37,7 +38,7 @@ Thus, the two variables affect pump operation are set in New():
if(!ishuman(usr) && !issilicon(usr))
return
toggle()
return ..()
return
/obj/machinery/atmospherics/binary/pump/AICtrlClick()
toggle()
@@ -52,7 +53,7 @@ Thus, the two variables affect pump operation are set in New():
if(!ishuman(usr) && !issilicon(usr))
return
set_max()
return ..()
return
/obj/machinery/atmospherics/binary/pump/AIAltClick()
set_max()
@@ -29,6 +29,7 @@ Thus, the two variables affect pump operation are set in New():
var/datum/radio_frequency/radio_connection
/obj/machinery/atmospherics/binary/volume_pump/CtrlClick(mob/living/user)
..()
if(!istype(user) || user.incapacitated())
to_chat(user, "<span class='warning'>You can't do that right now!</span>")
return
@@ -37,7 +38,7 @@ Thus, the two variables affect pump operation are set in New():
if(!ishuman(usr) && !issilicon(usr))
return
toggle()
return ..()
return
/obj/machinery/atmospherics/binary/volume_pump/AICtrlClick()
toggle()
@@ -52,7 +53,7 @@ Thus, the two variables affect pump operation are set in New():
if(!ishuman(usr) && !issilicon(usr))
return
set_max()
return ..()
return
/obj/machinery/atmospherics/binary/volume_pump/AIAltClick()
set_max()