Makes removable labels a thing (#2440)

Not sure if this is the best use of a variable! But in special cases, initial(name) doesn't work. And this is the next safer option!
This commit is contained in:
skull132
2017-05-24 20:50:11 +03:00
committed by GitHub
parent 8cca057344
commit ea071a4b24
4 changed files with 45 additions and 16 deletions
+4 -14
View File
@@ -376,21 +376,11 @@
return
/obj/machinery/portable_atmospherics/hydroponics/verb/remove_label()
/obj/machinery/portable_atmospherics/hydroponics/remove_label()
if(..())
labelled = null
update_icon()
set name = "Remove Label"
set category = "Object"
set src in view(1)
if(usr.incapacitated())
return
if(ishuman(usr) || istype(usr, /mob/living/silicon/robot))
if(labelled)
usr << "You remove the label."
labelled = null
update_icon()
else
usr << "There is no label to remove."
return
/obj/machinery/portable_atmospherics/hydroponics/verb/setlight()
@@ -29,7 +29,6 @@
/obj/machinery/portable_atmospherics/hydroponics/soil/New()
..()
verbs -= /obj/machinery/portable_atmospherics/hydroponics/verb/close_lid_verb
verbs -= /obj/machinery/portable_atmospherics/hydroponics/verb/remove_label
verbs -= /obj/machinery/portable_atmospherics/hydroponics/verb/setlight
/obj/machinery/portable_atmospherics/hydroponics/soil/CanPass()