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

🆑
qol: Atmos devices like valves and pumps can now be renamed with a pen.
/🆑
This commit is contained in:
Roxy
2024-12-21 05:47:51 -05:00
committed by StrangeWeirdKitten
parent dadfca5811
commit 99ca6be891
2 changed files with 2 additions and 1 deletions

View File

@@ -545,7 +545,7 @@
SSair.add_to_rebuild_queue(src) SSair.add_to_rebuild_queue(src)
/obj/machinery/atmospherics/update_name() /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)]" name = "[GLOB.pipe_color_name[pipe_color]] [initial(name)]"
return ..() return ..()

View File

@@ -7,6 +7,7 @@
device_type = BINARY device_type = BINARY
layer = GAS_PUMP_LAYER layer = GAS_PUMP_LAYER
pipe_flags = PIPING_BRIDGE pipe_flags = PIPING_BRIDGE
obj_flags = parent_type::obj_flags | UNIQUE_RENAME
/obj/machinery/atmospherics/components/binary/set_init_directions() /obj/machinery/atmospherics/components/binary/set_init_directions()
switch(dir) switch(dir)