From 99ca6be8919668db901b18bf1799a87f33c09701 Mon Sep 17 00:00:00 2001 From: Roxy <75404941+TealSeer@users.noreply.github.com> Date: Sat, 21 Dec 2024 05:47:51 -0500 Subject: [PATCH] Allow binary atmos devices to be renamed with a pen (#88522) ## About The Pull Request Add `UNIQUE_RENAME` flag to binary devices (pumps, valves, etc.) so you can rename them with a pen. Add a check to `/obj/machinery/atmospherics/update_name` to accommodate this. ## Why It's Good For The Game On a lot of maps the roundstart atmos pumps are labelled and if you end up swapping them you lose that. Also sometimes you just want to label your inscrutable atmos setup and while you can use a hand labeller it's kind of ugly. ## Changelog :cl: qol: Atmos devices like valves and pumps can now be renamed with a pen. /:cl: --- code/modules/atmospherics/machinery/atmosmachinery.dm | 2 +- .../machinery/components/binary_devices/binary_devices.dm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/atmospherics/machinery/atmosmachinery.dm b/code/modules/atmospherics/machinery/atmosmachinery.dm index 186ef8ea9aa..dcff09cfdbb 100644 --- a/code/modules/atmospherics/machinery/atmosmachinery.dm +++ b/code/modules/atmospherics/machinery/atmosmachinery.dm @@ -545,7 +545,7 @@ SSair.add_to_rebuild_queue(src) /obj/machinery/atmospherics/update_name() - if(!override_naming) + if(!override_naming && !HAS_TRAIT(src, TRAIT_WAS_RENAMED)) name = "[GLOB.pipe_color_name[pipe_color]] [initial(name)]" return ..() diff --git a/code/modules/atmospherics/machinery/components/binary_devices/binary_devices.dm b/code/modules/atmospherics/machinery/components/binary_devices/binary_devices.dm index b26f0c028d1..c8cb2e849ca 100644 --- a/code/modules/atmospherics/machinery/components/binary_devices/binary_devices.dm +++ b/code/modules/atmospherics/machinery/components/binary_devices/binary_devices.dm @@ -7,6 +7,7 @@ device_type = BINARY layer = GAS_PUMP_LAYER pipe_flags = PIPING_BRIDGE + obj_flags = parent_type::obj_flags | UNIQUE_RENAME /obj/machinery/atmospherics/components/binary/set_init_directions() switch(dir)