mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
21b4095dfd
Upstream 04/17/2026 fixes https://github.com/Bubberstation/Bubberstation/issues/5549 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: tgstation-ci[bot] <179393467+tgstation-ci[bot]@users.noreply.github.com> Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com> Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com> Co-authored-by: Rhials <28870487+Rhials@users.noreply.github.com> Co-authored-by: rageguy505 <54517726+rageguy505@users.noreply.github.com> Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: Aliceee2ch <160794176+Aliceee2ch@users.noreply.github.com> Co-authored-by: Time-Green <7501474+Time-Green@users.noreply.github.com> Co-authored-by: Tsar-Salat <62388554+Tsar-Salat@users.noreply.github.com> Co-authored-by: SmArtKar <44720187+SmArtKar@users.noreply.github.com> Co-authored-by: Maxipat <108554989+Maxipat112@users.noreply.github.com> Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com> Co-authored-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: SimplyLogan <47579821+loganuk@users.noreply.github.com> Co-authored-by: loganuk <fakeemail123@aol.com> Co-authored-by: Leland Kemble <70413276+lelandkemble@users.noreply.github.com> Co-authored-by: FalloutFalcon <86381784+FalloutFalcon@users.noreply.github.com> Co-authored-by: Roxy <75404941+TealSeer@users.noreply.github.com> Co-authored-by: Lucy <lucy@absolucy.moe> Co-authored-by: siliconOpossum <138069572+siliconOpossum@users.noreply.github.com> Co-authored-by: Isratosh <Isratosh@hotmail.com> Co-authored-by: TheRyeGuyWhoWillNowDie <70169560+TheRyeGuyWhoWillNowDie@users.noreply.github.com> Co-authored-by: Neocloudy <88008002+Neocloudy@users.noreply.github.com> Co-authored-by: Alexander V. <volas@ya.ru> Co-authored-by: ElGitificador <168473461+ElGitificador@users.noreply.github.com> Co-authored-by: Twaticus <46540570+Twaticus@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Tim <timothymtorres@gmail.com> Co-authored-by: Iamgoofball <iamgoofball@gmail.com> Co-authored-by: Layzu666 <121319428+Layzu666@users.noreply.github.com> Co-authored-by: Arturlang <24881678+Arturlang@users.noreply.github.com> Co-authored-by: _0Steven <42909981+00-Steven@users.noreply.github.com> Co-authored-by: mrmanlikesbt <99309552+mrmanlikesbt@users.noreply.github.com> Co-authored-by: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Co-authored-by: John F. Kennedy <54908920+MacaroniCritter@users.noreply.github.com> Co-authored-by: Cursor <102828457+theselfish@users.noreply.github.com> Co-authored-by: Josh <josh.adam.powell@gmail.com> Co-authored-by: Josh Powell <josh.powell@softwire.com> Co-authored-by: Yobrocharlie <Charliemiller5617@gmail.com> Co-authored-by: Hardly3D <66234359+Hardly3D@users.noreply.github.com> Co-authored-by: shayoki <96078776+shayoki@users.noreply.github.com> Co-authored-by: LT3 <83487515+lessthnthree@users.noreply.github.com>
139 lines
5.5 KiB
Plaintext
139 lines
5.5 KiB
Plaintext
/* SKYRAT EDIT REMOVAL
|
|
/proc/generate_lizard_side_shot(datum/sprite_accessory/sprite_accessory, key, include_snout = TRUE)
|
|
var/static/datum/universal_icon/lizard
|
|
var/static/datum/universal_icon/lizard_with_snout
|
|
|
|
if (isnull(lizard))
|
|
lizard = uni_icon('icons/mob/human/species/lizard/bodyparts.dmi', "lizard_head", EAST)
|
|
var/datum/universal_icon/eyes = uni_icon(/obj/item/organ/eyes/lizard::eye_icon, "[/obj/item/organ/eyes/lizard::eye_icon_state]_l", EAST)
|
|
eyes.blend_color(COLOR_GRAY, ICON_MULTIPLY)
|
|
lizard.blend_icon(eyes, ICON_OVERLAY)
|
|
|
|
lizard_with_snout = lizard.copy()
|
|
lizard_with_snout.blend_icon(uni_icon('icons/mob/human/species/lizard/lizard_misc.dmi', "m_snout_round_ADJ", EAST), ICON_OVERLAY)
|
|
|
|
var/datum/universal_icon/final_icon = include_snout ? lizard_with_snout.copy() : lizard.copy()
|
|
|
|
if (!isnull(sprite_accessory) && sprite_accessory.icon_state != SPRITE_ACCESSORY_NONE)
|
|
var/datum/universal_icon/accessory_icon = uni_icon(sprite_accessory.icon, "m_[key]_[sprite_accessory.icon_state]_ADJ", EAST)
|
|
final_icon.blend_icon(accessory_icon, ICON_OVERLAY)
|
|
|
|
final_icon.crop(11, 20, 23, 32)
|
|
final_icon.scale(32, 32)
|
|
final_icon.blend_color(COLOR_VIBRANT_LIME, ICON_MULTIPLY)
|
|
|
|
return final_icon
|
|
|
|
/datum/preference/choiced/species_feature/lizard_body_markings
|
|
savefile_key = "feature_lizard_body_markings"
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
category = PREFERENCE_CATEGORY_FEATURES
|
|
main_feature_name = "Body markings"
|
|
should_generate_icons = TRUE
|
|
relevant_body_markings = /datum/bodypart_overlay/simple/body_marking/lizard
|
|
|
|
/datum/preference/choiced/species_feature/lizard_body_markings/icon_for(value)
|
|
var/datum/sprite_accessory/sprite_accessory = get_accessory_for_value(value)
|
|
|
|
var/datum/universal_icon/final_icon = uni_icon('icons/mob/human/species/lizard/bodyparts.dmi', "lizard_chest_m")
|
|
|
|
if (sprite_accessory.icon_state != SPRITE_ACCESSORY_NONE)
|
|
var/datum/universal_icon/body_markings_icon = uni_icon(
|
|
sprite_accessory.icon,
|
|
"male_[sprite_accessory.icon_state]_chest",
|
|
)
|
|
|
|
final_icon.blend_icon(body_markings_icon, ICON_OVERLAY)
|
|
|
|
final_icon.blend_color(COLOR_VIBRANT_LIME, ICON_MULTIPLY)
|
|
final_icon.crop(10, 8, 22, 23)
|
|
final_icon.scale(26, 32)
|
|
final_icon.crop(-2, 1, 29, 32)
|
|
|
|
return final_icon
|
|
|
|
/datum/preference/choiced/species_feature/lizard_frills
|
|
savefile_key = "feature_lizard_frills"
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
category = PREFERENCE_CATEGORY_FEATURES
|
|
main_feature_name = "Frills"
|
|
should_generate_icons = TRUE
|
|
relevant_organ = /obj/item/organ/frills
|
|
|
|
/datum/preference/choiced/species_feature/lizard_frills/icon_for(value)
|
|
return generate_lizard_side_shot(get_accessory_for_value(value), "frills")
|
|
|
|
/datum/preference/choiced/species_feature/lizard_horns
|
|
savefile_key = "feature_lizard_horns"
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
category = PREFERENCE_CATEGORY_FEATURES
|
|
main_feature_name = "Horns"
|
|
should_generate_icons = TRUE
|
|
relevant_organ = /obj/item/organ/horns
|
|
|
|
/datum/preference/choiced/species_feature/lizard_horns/icon_for(value)
|
|
return generate_lizard_side_shot(get_accessory_for_value(value), "horns")
|
|
|
|
/datum/preference/choiced/lizard_legs
|
|
savefile_key = "feature_lizard_legs"
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
|
|
|
|
/datum/preference/choiced/lizard_legs/init_possible_values()
|
|
return list(NORMAL_LEGS, DIGITIGRADE_LEGS)
|
|
|
|
/datum/preference/choiced/lizard_legs/apply_to_human(mob/living/carbon/human/target, value)
|
|
target.dna.features[FEATURE_LEGS] = value
|
|
// Hack to update the dummy in the preference menu
|
|
// (Because digi legs are ONLY handled on species change)
|
|
if(!isdummy(target) || target.dna.species.digitigrade_customization == DIGITIGRADE_NEVER)
|
|
return
|
|
|
|
var/list/correct_legs = target.dna.species.bodypart_overrides.Copy() & list(BODY_ZONE_R_LEG, BODY_ZONE_L_LEG)
|
|
|
|
if(value == DIGITIGRADE_LEGS)
|
|
correct_legs[BODY_ZONE_R_LEG] = /obj/item/bodypart/leg/right/digitigrade
|
|
correct_legs[BODY_ZONE_L_LEG] = /obj/item/bodypart/leg/left/digitigrade
|
|
|
|
for(var/obj/item/bodypart/old_part as anything in target.get_bodyparts())
|
|
if(old_part.change_exempt_flags & BP_BLOCK_CHANGE_SPECIES)
|
|
continue
|
|
|
|
var/path = correct_legs[old_part.body_zone]
|
|
if(!path)
|
|
continue
|
|
var/obj/item/bodypart/new_part = new path()
|
|
new_part.replace_limb(target)
|
|
new_part.update_limb(is_creating = TRUE)
|
|
qdel(old_part)
|
|
|
|
/datum/preference/choiced/lizard_legs/is_accessible(datum/preferences/preferences)
|
|
if(!..())
|
|
return FALSE
|
|
var/datum/species/species_type = preferences.read_preference(/datum/preference/choiced/species)
|
|
return initial(species_type.digitigrade_customization) == DIGITIGRADE_OPTIONAL
|
|
|
|
/datum/preference/choiced/species_feature/lizard_snout
|
|
savefile_key = "feature_lizard_snout"
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
category = PREFERENCE_CATEGORY_FEATURES
|
|
main_feature_name = "Snout"
|
|
should_generate_icons = TRUE
|
|
relevant_organ = /obj/item/organ/snout
|
|
|
|
/datum/preference/choiced/species_feature/lizard_snout/icon_for(value)
|
|
return generate_lizard_side_shot(get_accessory_for_value(value), "snout", include_snout = FALSE)
|
|
|
|
/datum/preference/choiced/species_feature/lizard_spines
|
|
savefile_key = "feature_lizard_spines"
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
|
|
relevant_organ = /obj/item/organ/spines
|
|
|
|
/datum/preference/choiced/species_feature/lizard_tail
|
|
savefile_key = "feature_lizard_tail"
|
|
savefile_identifier = PREFERENCE_CHARACTER
|
|
category = PREFERENCE_CATEGORY_SECONDARY_FEATURES
|
|
relevant_organ = /obj/item/organ/tail/lizard
|
|
*/
|