Adds the ability to label blood packs.

This commit is contained in:
bgobandit
2015-11-15 16:45:43 -05:00
parent a09d69e985
commit f01fd1f942
@@ -49,4 +49,17 @@
/obj/item/weapon/reagent_containers/blood/empty
name = "empty blood pack"
desc = "Seems pretty useless... Maybe if there were a way to fill it?"
icon_state = "empty"
icon_state = "empty"
/obj/item/weapon/reagent_containers/blood/attackby(obj/item/I, mob/user, params)
if (istype(I, /obj/item/weapon/pen) || istype(I, /obj/item/toy/crayon))
var/t = stripped_input(user, "What would you like to label the blood pack?", name, null, 53)
if(user.get_active_hand() != I)
return
if(!in_range(src, user) && loc != user)
return
if(t)
name = "blood pack - [t]"
else
name = "blood pack"
return