mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Fix thermomachines always having "grey" name (#61026)
Using a multitool on an open TCU changes its pipe color. However, the name was not being updated, leaving them to always appear to be grey TCUs.
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
|
||||
/obj/machinery/atmospherics/LateInitialize()
|
||||
. = ..()
|
||||
name = "[GLOB.pipe_color_name[pipe_color]] [name]"
|
||||
update_name()
|
||||
|
||||
/obj/machinery/atmospherics/examine(mob/user)
|
||||
. = ..()
|
||||
@@ -453,7 +453,7 @@
|
||||
if(can_unwrench)
|
||||
add_atom_colour(obj_color, FIXED_COLOUR_PRIORITY)
|
||||
pipe_color = obj_color
|
||||
name = "[GLOB.pipe_color_name[obj_color]] [initial(name)]"
|
||||
update_name()
|
||||
setPipingLayer(set_layer)
|
||||
atmosinit()
|
||||
var/list/nodes = pipeline_expansion()
|
||||
@@ -462,6 +462,10 @@
|
||||
A.addMember(src)
|
||||
SSair.add_to_rebuild_queue(src)
|
||||
|
||||
/obj/machinery/atmospherics/update_name()
|
||||
name = "[GLOB.pipe_color_name[pipe_color]] [initial(name)]"
|
||||
return ..()
|
||||
|
||||
/obj/machinery/atmospherics/Entered(atom/movable/arrived, atom/old_loc, list/atom/old_locs)
|
||||
if(istype(arrived, /mob/living))
|
||||
var/mob/living/L = arrived
|
||||
|
||||
Reference in New Issue
Block a user