diff --git a/code/game/objects/items/storage/firstaid.dm b/code/game/objects/items/storage/firstaid.dm index 7e2865d95fd9..3e7c00f3d0ff 100644 --- a/code/game/objects/items/storage/firstaid.dm +++ b/code/game/objects/items/storage/firstaid.dm @@ -526,22 +526,6 @@ to_chat(usr, SPAN_NOTICE("You label \the [src] with '[str]' in big, blocky letters.")) update_icon() -/obj/item/storage/pill_bottle/verb/set_color() - set category = "Object" - set name = "Set bottle color" - set src in usr - - if(src && ishuman(usr)) - var/num = copytext(reject_bad_text(input(usr,"Color? (1-12)", "Set \the [src]'s color", "")), 1, 3) - if(!num || !length(num) || text2num(num) <= 0 || text2num(num) > 12 || copytext(num, 2, 3) == " ") - to_chat(usr, SPAN_NOTICE("You clear the color off \the [src].")) - icon_state = "pill_canister" - update_icon() - return - icon_state = "pill_canister" + num - to_chat(usr, SPAN_NOTICE("You color \the [src].")) - update_icon() - /obj/item/storage/pill_bottle/kelotane name = "\improper Kelotane pill bottle" icon_state = "pill_canister2" diff --git a/code/game/objects/items/tools/misc_tools.dm b/code/game/objects/items/tools/misc_tools.dm index 06f42aacd56c..82d3577e897c 100644 --- a/code/game/objects/items/tools/misc_tools.dm +++ b/code/game/objects/items/tools/misc_tools.dm @@ -58,6 +58,16 @@ if(isturf(A)) to_chat(user, SPAN_WARNING("The label won't stick to that.")) return + if(istype(A, /obj/item/storage/pill_bottle)) + var/num = copytext(reject_bad_text(input(usr,"Color? (1-12 or blank)", "Set \the [A]'s color", "")), 1, 3) + if(!num || !length(num) || text2num(num) <= 0 || text2num(num) > 12 || copytext(num, 2, 3) == " ") + to_chat(usr, SPAN_NOTICE("You clear the color off \the [A].")) + A.icon_state = "pill_canister" + update_icon() + A.icon_state = "pill_canister" + num + to_chat(usr, SPAN_NOTICE("You color \the [A].")) + update_icon() + if(!label || !length(label)) remove_label(A, user) return diff --git a/code/modules/reagents/chemistry_machinery/chem_master.dm b/code/modules/reagents/chemistry_machinery/chem_master.dm index ebbf53ce3333..e6582a221235 100644 --- a/code/modules/reagents/chemistry_machinery/chem_master.dm +++ b/code/modules/reagents/chemistry_machinery/chem_master.dm @@ -152,7 +152,7 @@ var/num = copytext(reject_bad_text(input(usr,"Color? (1-12)", "Set \the [src]'s color", "")), 1, 3) if(!num || !length(num) || text2num(num) <= 0 || text2num(num) > 12 || copytext(num, 2, 3) == " ") to_chat(usr, SPAN_NOTICE("You clear the color off \the [src].")) - icon_state = "pill_canister" + loaded_pill_bottle.icon_state = "pill_canister" update_icon() return loaded_pill_bottle.icon_state = "pill_canister" + num