mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
6e9f2ccfc0
# Conflicts: # .github/workflows/compile_all_maps.yml # .github/workflows/run_integration_tests.yml # _maps/map_files/CatwalkStation/CatwalkStation_2023.dmm # code/_onclick/hud/credits.dm # code/controllers/subsystem/networks/id_access.dm # code/datums/diseases/advance/advance.dm # code/datums/diseases/advance/symptoms/heal.dm # code/game/machinery/doors/door.dm # code/game/objects/structures/crates_lockers/closets/secure/medical.dm # code/game/objects/structures/crates_lockers/closets/secure/security.dm # code/modules/antagonists/malf_ai/malf_ai_modules.dm # code/modules/jobs/job_types/_job.dm # code/modules/loadout/categories/accessories.dm # code/modules/loadout/loadout_helpers.dm # code/modules/loadout/loadout_items.dm # code/modules/loadout/loadout_preference.dm # code/modules/mob/living/silicon/robot/robot_defense.dm # code/modules/mod/mod_theme.dm # code/modules/projectiles/ammunition/energy/laser.dm # code/modules/reagents/reagent_containers/cups/drinks.dm # code/modules/shuttle/mobile_port/variants/supply.dm # code/modules/surgery/organs/internal/eyes/_eyes.dm # code/modules/unit_tests/screenshots/screenshot_antag_icons_heretic.png # icons/hud/screen_full.dmi
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.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, TRUE)
|
|
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
|
|
*/
|