mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-14 11:42:27 +00:00
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:
@@ -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 ..()
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user