mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
[MIRROR] Named barrels [MDB IGNORE] (#21850)
* Named barrels (#75976)  ## 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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user