From 08ecbe4b3fd971829063ac6774732b9ed9bfc36c Mon Sep 17 00:00:00 2001 From: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com> Date: Wed, 8 Apr 2026 12:45:47 -0500 Subject: [PATCH] Quirk prefrences consistant use `::name` (#95674) --- code/modules/client/preferences/addict.dm | 6 +++--- code/modules/client/preferences/food_allergy.dm | 2 +- code/modules/client/preferences/glasses.dm | 2 +- code/modules/client/preferences/hemiplegic.dm | 2 +- code/modules/client/preferences/heterochromatic.dm | 2 +- code/modules/client/preferences/paint_color.dm | 2 +- code/modules/client/preferences/paraplegic.dm | 2 +- code/modules/client/preferences/phobia.dm | 2 +- code/modules/client/preferences/prosthetic_limb.dm | 2 +- code/modules/client/preferences/prosthetic_organ.dm | 2 +- code/modules/client/preferences/scarred_eye.dm | 2 +- code/modules/client/preferences/trans_prosthetic.dm | 2 +- 12 files changed, 14 insertions(+), 14 deletions(-) diff --git a/code/modules/client/preferences/addict.dm b/code/modules/client/preferences/addict.dm index 99fb226d8a3..7aafde6fc70 100644 --- a/code/modules/client/preferences/addict.dm +++ b/code/modules/client/preferences/addict.dm @@ -25,7 +25,7 @@ /datum/preference/choiced/junkie/is_accessible(datum/preferences/preferences) if (!..()) return FALSE - return "Junkie" in preferences.all_quirks + return /datum/quirk/item_quirk/addict/junkie::name in preferences.all_quirks /datum/preference/choiced/junkie/apply_to_human(mob/living/carbon/human/target, value) return @@ -45,7 +45,7 @@ /datum/preference/choiced/smoker/is_accessible(datum/preferences/preferences) if (!..()) return FALSE - return "Smoker" in preferences.all_quirks + return /datum/quirk/item_quirk/addict/smoker::name in preferences.all_quirks /datum/preference/choiced/smoker/apply_to_human(mob/living/carbon/human/target, value) return @@ -65,7 +65,7 @@ /datum/preference/choiced/alcoholic/is_accessible(datum/preferences/preferences) if (!..()) return FALSE - return "Alcoholic" in preferences.all_quirks + return /datum/quirk/item_quirk/addict/alcoholic::name in preferences.all_quirks /datum/preference/choiced/alcoholic/apply_to_human(mob/living/carbon/human/target, value) return diff --git a/code/modules/client/preferences/food_allergy.dm b/code/modules/client/preferences/food_allergy.dm index c6bf75b3444..1ab5307c1fc 100644 --- a/code/modules/client/preferences/food_allergy.dm +++ b/code/modules/client/preferences/food_allergy.dm @@ -15,7 +15,7 @@ if (!..()) return FALSE - return "Food Allergy" in preferences.all_quirks + return /datum/quirk/item_quirk/food_allergic::name in preferences.all_quirks /datum/preference/choiced/food_allergy/apply_to_human(mob/living/carbon/human/target, value) return diff --git a/code/modules/client/preferences/glasses.dm b/code/modules/client/preferences/glasses.dm index 5902ae9f9fe..59be8f75485 100644 --- a/code/modules/client/preferences/glasses.dm +++ b/code/modules/client/preferences/glasses.dm @@ -20,7 +20,7 @@ if (!..(preferences)) return FALSE - return "Nearsighted" in preferences.all_quirks + return /datum/quirk/item_quirk/nearsighted::name in preferences.all_quirks /datum/preference/choiced/glasses/apply_to_human(mob/living/carbon/human/target, value) return diff --git a/code/modules/client/preferences/hemiplegic.dm b/code/modules/client/preferences/hemiplegic.dm index f44bd5c7c94..04a8bf1374e 100644 --- a/code/modules/client/preferences/hemiplegic.dm +++ b/code/modules/client/preferences/hemiplegic.dm @@ -12,7 +12,7 @@ if (!.) return FALSE - return "Hemiplegic" in preferences.all_quirks + return /datum/quirk/hemiplegic::name in preferences.all_quirks /datum/preference/choiced/hemiplegic/apply_to_human(mob/living/carbon/human/target, value) return diff --git a/code/modules/client/preferences/heterochromatic.dm b/code/modules/client/preferences/heterochromatic.dm index 38d0d646089..25a399d6f19 100644 --- a/code/modules/client/preferences/heterochromatic.dm +++ b/code/modules/client/preferences/heterochromatic.dm @@ -7,7 +7,7 @@ if (!..(preferences)) return FALSE - return "Heterochromatic" in preferences.all_quirks + return /datum/quirk/heterochromatic::name in preferences.all_quirks /datum/preference/color/heterochromatic/apply_to_human(mob/living/carbon/human/target, value) var/datum/quirk/heterochromatic/hetero_quirk = locate() in target.quirks diff --git a/code/modules/client/preferences/paint_color.dm b/code/modules/client/preferences/paint_color.dm index ea61d8ee904..9c97fc2c856 100644 --- a/code/modules/client/preferences/paint_color.dm +++ b/code/modules/client/preferences/paint_color.dm @@ -9,7 +9,7 @@ if (!..(preferences)) return FALSE - return "Tagger" in preferences.all_quirks + return /datum/quirk/item_quirk/tagger::name in preferences.all_quirks /datum/preference/color/paint_color/apply_to_human(mob/living/carbon/human/target, value) return diff --git a/code/modules/client/preferences/paraplegic.dm b/code/modules/client/preferences/paraplegic.dm index 1ffa704c77d..10e91deef71 100644 --- a/code/modules/client/preferences/paraplegic.dm +++ b/code/modules/client/preferences/paraplegic.dm @@ -14,7 +14,7 @@ if (!.) return FALSE - return "Paraplegic" in preferences.all_quirks + return /datum/quirk/paraplegic::name in preferences.all_quirks /datum/preference/choiced/paraplegic/apply_to_human(mob/living/carbon/human/target, value) return diff --git a/code/modules/client/preferences/phobia.dm b/code/modules/client/preferences/phobia.dm index e0087d7c0b8..89025b26240 100644 --- a/code/modules/client/preferences/phobia.dm +++ b/code/modules/client/preferences/phobia.dm @@ -11,7 +11,7 @@ if (!..(preferences)) return FALSE - return "Phobia" in preferences.all_quirks + return /datum/brain_trauma/mild/phobia::name in preferences.all_quirks /datum/preference/choiced/phobia/apply_to_human(mob/living/carbon/human/target, value) return diff --git a/code/modules/client/preferences/prosthetic_limb.dm b/code/modules/client/preferences/prosthetic_limb.dm index be807ac4e1f..a9bdb81e825 100644 --- a/code/modules/client/preferences/prosthetic_limb.dm +++ b/code/modules/client/preferences/prosthetic_limb.dm @@ -14,7 +14,7 @@ if (!.) return FALSE - return "Prosthetic Limb" in preferences.all_quirks + return /datum/quirk/prosthetic_limb::name in preferences.all_quirks /datum/preference/choiced/prosthetic/apply_to_human(mob/living/carbon/human/target, value) return diff --git a/code/modules/client/preferences/prosthetic_organ.dm b/code/modules/client/preferences/prosthetic_organ.dm index 8262b141a1d..3ac5d66ca31 100644 --- a/code/modules/client/preferences/prosthetic_organ.dm +++ b/code/modules/client/preferences/prosthetic_organ.dm @@ -15,7 +15,7 @@ if (!.) return FALSE - return "Prosthetic Organ" in preferences.all_quirks + return /datum/quirk/prosthetic_organ::name in preferences.all_quirks /datum/preference/choiced/prosthetic_organ/apply_to_human(mob/living/carbon/human/target, value) return diff --git a/code/modules/client/preferences/scarred_eye.dm b/code/modules/client/preferences/scarred_eye.dm index 6cb0286fe86..7e0b7147691 100644 --- a/code/modules/client/preferences/scarred_eye.dm +++ b/code/modules/client/preferences/scarred_eye.dm @@ -14,7 +14,7 @@ if (!.) return FALSE - return "Scarred Eye" in preferences.all_quirks + return /datum/quirk/item_quirk/scarred_eye::name in preferences.all_quirks /datum/preference/choiced/scarred_eye/apply_to_human(mob/living/carbon/human/target, value) return diff --git a/code/modules/client/preferences/trans_prosthetic.dm b/code/modules/client/preferences/trans_prosthetic.dm index ea8128a1f44..db844772613 100644 --- a/code/modules/client/preferences/trans_prosthetic.dm +++ b/code/modules/client/preferences/trans_prosthetic.dm @@ -14,7 +14,7 @@ if (!.) return FALSE - return "Transhumanist" in preferences.all_quirks + return /datum/quirk/transhumanist::name in preferences.all_quirks /datum/preference/choiced/trans_prosthetic/apply_to_human(mob/living/carbon/human/target, value) return