mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-14 19:51:59 +00:00
* Adds informed default values for a bunch of preferences (to produce less outlandish random characters) * Update felinid.dm * Update lizard.dm * Update monkey.dm * [READY] the unfuckening of clothing rendering (#79784) refactors clothing visors to use the same system, including masks being toggled and stuff like riot helmets toggling using the same system and welding helmets and such adds a handler that updates all visuals in slots that an item has obscured, each visual proc calls that so you no longer have weird shit happening like having to hardcode a proc for heads where you need to also update hair, mask, glasses everytime you put on an item one thing here i could also do is make check_obscured_slots return the HIDEX flags instead of item slots, because in 99% of cases its hardcoded to be ran against specific slots (like eye code running it against the glasses slot), but maintainers didnt seem to like that :/ fuck this 2003 bullshit theres like several bugs here i fixed but i forgot them all and they are small --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: SpaceLoveSs13 <68121607+SpaceLoveSs13@users.noreply.github.com>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
/datum/preference/choiced/language
|
|
category = PREFERENCE_CATEGORY_MANUALLY_RENDERED
|
|
savefile_key = "language"
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
|
|
/datum/preference/choiced/language/create_default_value()
|
|
return "Random"
|
|
|
|
/datum/preference/choiced/language/is_accessible(datum/preferences/preferences)
|
|
if (!..(preferences))
|
|
return FALSE
|
|
|
|
return "Bilingual" in preferences.all_quirks
|
|
|
|
/datum/preference/choiced/language/init_possible_values()
|
|
var/list/values = list()
|
|
|
|
if(!GLOB.uncommon_roundstart_languages.len)
|
|
generate_selectable_species_and_languages()
|
|
|
|
values += "Random"
|
|
|
|
//we add uncommon as it's foreigner-only.
|
|
var/datum/language/uncommon/uncommon_language = /datum/language/uncommon
|
|
values += initial(uncommon_language.name)
|
|
values += /datum/language/common::name // SKYRAT EDIT ADDITION START - Let's you select common
|
|
|
|
for(var/datum/language/language_type as anything in GLOB.uncommon_roundstart_languages)
|
|
if(initial(language_type.name) in values)
|
|
continue
|
|
values += initial(language_type.name)
|
|
|
|
return values
|
|
|
|
/datum/preference/choiced/language/apply_to_human(mob/living/carbon/human/target, value)
|
|
return
|