mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 20:20:33 +01:00
update_appearance (#55468)
Creates update_name and update_desc Creates the wrapper proc update_appearance to batch update_name, update_desc, and update_icon together Less non-icon handling code in update_icon and friends Signal hooks for things that want to change names and descriptions 99%+ of the changes in this are just from switching everything over to update_appearance from update_icon
This commit is contained in:
@@ -252,7 +252,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_lava)
|
||||
else
|
||||
var/obj/item/organ/O = part
|
||||
O.organ_flags |= ORGAN_FROZEN
|
||||
j.update_icon()
|
||||
j.update_appearance()
|
||||
qdel(src)
|
||||
|
||||
|
||||
@@ -375,7 +375,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_lava)
|
||||
var/obj/machinery/door/airlock/found_airlock = locate(/obj/machinery/door/airlock) in turf
|
||||
if(note_path)
|
||||
found_airlock.note = note_path
|
||||
found_airlock.update_icon()
|
||||
found_airlock.update_appearance()
|
||||
qdel(src)
|
||||
if(note_info)
|
||||
var/obj/item/paper/paper = new /obj/item/paper(src)
|
||||
@@ -384,7 +384,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/mapping_helpers/no_lava)
|
||||
paper.info = "[note_info]"
|
||||
found_airlock.note = paper
|
||||
paper.forceMove(found_airlock)
|
||||
found_airlock.update_icon()
|
||||
found_airlock.update_appearance()
|
||||
qdel(src)
|
||||
log_mapping("[src] at [x],[y] had no note_path or note_info, cannot place paper note.")
|
||||
qdel(src)
|
||||
|
||||
Reference in New Issue
Block a user