Skip to content

Commit

Permalink
Chem master autonames hyposprays and smartdarts (#1521)
Browse files Browse the repository at this point in the history
Chem master hypo names
  • Loading branch information
FlufflesTheDog authored and StealsThePRs committed Mar 23, 2024
1 parent 9aba8d1 commit 1b649c3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/reagents/chemistry/machinery/chem_master.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1b649c3

Please sign in to comment.