mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-25 00:51:55 +00:00
* Adds a little button to quirks that allows for relatively easy customization * Fixing diffs --------- Co-authored-by: nikothedude <59709059+nikothedude@users.noreply.github.com> Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
24 lines
791 B
Plaintext
24 lines
791 B
Plaintext
/datum/preference/choiced/glasses
|
|
category = PREFERENCE_CATEGORY_MANUALLY_RENDERED
|
|
savefile_key = "glasses"
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
should_generate_icons = TRUE
|
|
|
|
/datum/preference/choiced/glasses/init_possible_values()
|
|
return assoc_to_keys(GLOB.nearsighted_glasses) + "Random"
|
|
|
|
/datum/preference/choiced/glasses/icon_for(value)
|
|
if (value == "Random")
|
|
return icon('icons/effects/random_spawners.dmi', "questionmark")
|
|
else
|
|
return icon('icons/obj/clothing/glasses.dmi', "glasses_[lowertext(value)]")
|
|
|
|
/datum/preference/choiced/glasses/is_accessible(datum/preferences/preferences)
|
|
if (!..(preferences))
|
|
return FALSE
|
|
|
|
return "Nearsighted" in preferences.all_quirks
|
|
|
|
/datum/preference/choiced/glasses/apply_to_human(mob/living/carbon/human/target, value)
|
|
return
|