mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Beaker and Pill Bottle Labeling
Can now label Pill Bottles with pens, just like Beakers Beakers (and pill bottles) can now accept 26 character labels from pens.
This commit is contained in:
@@ -159,8 +159,8 @@
|
||||
reagents.handle_reactions()
|
||||
if(istype(I, /obj/item/weapon/pen) || istype(I, /obj/item/device/flashlight/pen))
|
||||
var/tmp_label = sanitize(input(user, "Enter a label for [name]","Label",label_text))
|
||||
if(length(tmp_label) > 10)
|
||||
user << "<span class='warning'>The label can be at most 10 characters long.</span>"
|
||||
if(length(tmp_label) > MAX_NAME_LEN)
|
||||
user << "<span class='warning'>The label can be at most [MAX_NAME_LEN] characters long.</span>"
|
||||
else
|
||||
user << "<span class='notice'>You set the label to \"[tmp_label]\".</span>"
|
||||
label_text = tmp_label
|
||||
|
||||
Reference in New Issue
Block a user