[MIRROR] Named barrels [MDB IGNORE] (#21850)

* Named barrels (#75976)

![dreamseeker_qLlw7wAl94](https://github.com/tgstation/tgstation/assets/3625094/747f61a0-533f-4cc2-ac61-2901d2d3afb4)

## About The Pull Request

Barrels are nice stationary reagent containers, but it's hard to use
many of them because they're non-transparent and to see the reagents
with science glasses, you need to open the lid.

Now you can name barrels to not mistake them.

## Why It's Good For The Game

You don't need to open the barrel to figure out what you're going to get
from the tap.

## Changelog

🆑
qol: You can name barrels with a pen now, changing its icon
/🆑

* Named barrels

---------

Co-authored-by: Andrew <mt.forspam@gmail.com>
This commit is contained in:
SkyratBot
2023-06-14 21:39:09 -07:00
committed by GitHub
co-authored by Andrew
parent 0e1ea646ef
commit df7455f2a4
6 changed files with 19 additions and 1 deletions
+3
View File
@@ -186,6 +186,7 @@
label.apply_label()
to_chat(user, span_notice("You have successfully renamed \the [oldname] to [O]."))
O.renamedByPlayer = TRUE
O.update_appearance(UPDATE_ICON)
if(penchoice == "Description")
var/input = tgui_input_text(user, "Describe [O]", "Description", "[O.desc]", 280)
@@ -198,6 +199,7 @@
O.AddComponent(/datum/component/rename, O.name, input)
to_chat(user, span_notice("You have successfully changed [O]'s description."))
O.renamedByPlayer = TRUE
O.update_appearance(UPDATE_ICON)
if(penchoice == "Reset")
if(QDELETED(O) || !user.can_perform_action(O))
@@ -213,6 +215,7 @@
to_chat(user, span_notice("You have successfully reset [O]'s name and description."))
O.renamedByPlayer = FALSE
O.update_appearance(UPDATE_ICON)
/obj/item/pen/get_writing_implement_details()
return list(