From 93e92381a9e79d58f1db3c6ea789dc82619ed6da Mon Sep 17 00:00:00 2001 From: FloFluoro <3611705+FloFluoro@users.noreply.github.com> Date: Thu, 17 Nov 2022 15:06:49 -0500 Subject: [PATCH] Cmagged objects now use the same define on ADD_TRAIT (#19718) --- code/game/machinery/doors/airlock.dm | 2 +- code/game/machinery/doors/door.dm | 2 +- code/game/machinery/doors/windowdoor.dm | 2 +- code/game/objects/cleaning.dm | 2 +- code/modules/hydroponics/gene_modder.dm | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/game/machinery/doors/airlock.dm b/code/game/machinery/doors/airlock.dm index c808e1d8fc9..cec345e057f 100644 --- a/code/game/machinery/doors/airlock.dm +++ b/code/game/machinery/doors/airlock.dm @@ -1349,7 +1349,7 @@ GLOBAL_LIST_EMPTY(airlock_emissive_underlays) return operating = NONE update_icon(AIRLOCK_CLOSED, 1) - ADD_TRAIT(src, TRAIT_CMAGGED, "clown_emag") + ADD_TRAIT(src, TRAIT_CMAGGED, CLOWN_EMAG) return TRUE /obj/machinery/door/airlock/emp_act(severity) diff --git a/code/game/machinery/doors/door.dm b/code/game/machinery/doors/door.dm index 574eb11000e..08aeed79d2b 100644 --- a/code/game/machinery/doors/door.dm +++ b/code/game/machinery/doors/door.dm @@ -305,7 +305,7 @@ return flick("door_spark", src) sleep(6) //The cmag doesn't automatically open doors. It inverts access, not provides it! - ADD_TRAIT(src, TRAIT_CMAGGED, "clown_emag") + ADD_TRAIT(src, TRAIT_CMAGGED, CLOWN_EMAG) return TRUE //Proc for inverting access on cmagged doors."canopen" should always return the OPPOSITE of the normal result. diff --git a/code/game/machinery/doors/windowdoor.dm b/code/game/machinery/doors/windowdoor.dm index 16ee6019925..5df89d5c41d 100644 --- a/code/game/machinery/doors/windowdoor.dm +++ b/code/game/machinery/doors/windowdoor.dm @@ -273,7 +273,7 @@ /obj/machinery/door/window/cmag_act(mob/user, obj/weapon) if(operating || !density || HAS_TRAIT(src, TRAIT_CMAGGED)) return - ADD_TRAIT(src, TRAIT_CMAGGED, "clown_emag") + ADD_TRAIT(src, TRAIT_CMAGGED, CLOWN_EMAG) operating = DOOR_MALF flick("[base_state]spark", src) playsound(src, "sparks", 75, TRUE, SHORT_RANGE_SOUND_EXTRARANGE) diff --git a/code/game/objects/cleaning.dm b/code/game/objects/cleaning.dm index e63d3fe9e03..2dd6359881b 100644 --- a/code/game/objects/cleaning.dm +++ b/code/game/objects/cleaning.dm @@ -37,7 +37,7 @@ to_chat(user, "You [text_verb] \the [text_targetname][text_description]") if(is_cmagged) //If we've cleaned a cmagged object - REMOVE_TRAIT(src, TRAIT_CMAGGED, "clown_emag") + REMOVE_TRAIT(src, TRAIT_CMAGGED, CLOWN_EMAG) uncmag() return TRUE else diff --git a/code/modules/hydroponics/gene_modder.dm b/code/modules/hydroponics/gene_modder.dm index b32cd0f7cdd..211dde094e5 100644 --- a/code/modules/hydroponics/gene_modder.dm +++ b/code/modules/hydroponics/gene_modder.dm @@ -520,7 +520,7 @@ /obj/item/disk/plantgene/cmag_act(mob/user) if(!HAS_TRAIT(src, TRAIT_CMAGGED)) to_chat(user, "The bananium ooze flips a couple bits on the plant disk's display, making it look just like the..!") - ADD_TRAIT(src, TRAIT_CMAGGED, "clown_emag") + ADD_TRAIT(src, TRAIT_CMAGGED, CLOWN_EMAG) update_appearance(UPDATE_NAME|UPDATE_DESC|UPDATE_ICON) playsound(src, "sparks", 75, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)