From 1b649c34e1664df8f5f0036ee6bf91a310d76f30 Mon Sep 17 00:00:00 2001 From: FlufflesTheDog Date: Sat, 23 Mar 2024 15:14:03 -0700 Subject: [PATCH] Chem master autonames hyposprays and smartdarts (#1521) Chem master hypo names --- code/modules/reagents/chemistry/machinery/chem_master.dm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/modules/reagents/chemistry/machinery/chem_master.dm b/code/modules/reagents/chemistry/machinery/chem_master.dm index c07b62d732c..31a5183b841 100644 --- a/code/modules/reagents/chemistry/machinery/chem_master.dm +++ b/code/modules/reagents/chemistry/machinery/chem_master.dm @@ -351,6 +351,11 @@ item_name_default = "[master_reagent.name] [item_name_default]" if(!(initial(container_style.reagent_flags) & OPENCONTAINER)) // Closed containers get both reagent name and units in the name item_name_default = "[master_reagent.name] [item_name_default] ([volume_in_each]u)" + // NOVA EDIT ADDITION START - Autonamed hyposprays/smartdarts + if(ispath(container_style, /obj/item/reagent_containers/cup/vial) || ispath(container_style, /obj/item/reagent_containers/syringe/smartdart)) + item_name_default = "[master_reagent.name] [item_name_default]" + // NOVA EDIT ADDITION END + var/item_name = tgui_input_text(usr, "Container name", "Name",