Merge pull request #13037 from bgobandit/bloodlabels

Adds the ability to label blood packs.
This commit is contained in:
Razharas
2015-11-17 01:07:06 +03:00
@@ -49,4 +49,19 @@
/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))
if(!user.canUseTopic(src))
return
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