Quirk prefrences consistant use ::name (#95674)

This commit is contained in:
FalloutFalcon
2026-04-08 13:45:47 -04:00
committed by GitHub
parent 8789b826db
commit 08ecbe4b3f
12 changed files with 14 additions and 14 deletions
+3 -3
View File
@@ -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
@@ -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
+1 -1
View File
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
+1 -1
View File
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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