From 155ad76e603e5e8789e0e40b147eed29e25f3990 Mon Sep 17 00:00:00 2001 From: Asher-42 Date: Sun, 15 Sep 2024 10:05:22 -0400 Subject: [PATCH] Protean transparency ability (#8946) --- .../species/station/protean/protean_powers.dm | 41 ++++++++++++++++++ .../icons/obj/slimeborg/slimecore.dmi | Bin 0 -> 412 bytes 2 files changed, 41 insertions(+) create mode 100644 modular_chomp/icons/obj/slimeborg/slimecore.dmi diff --git a/modular_chomp/code/modules/mob/living/carbon/human/species/station/protean/protean_powers.dm b/modular_chomp/code/modules/mob/living/carbon/human/species/station/protean/protean_powers.dm index ec6da8dd80..5bd0d1033c 100644 --- a/modular_chomp/code/modules/mob/living/carbon/human/species/station/protean/protean_powers.dm +++ b/modular_chomp/code/modules/mob/living/carbon/human/species/station/protean/protean_powers.dm @@ -705,3 +705,44 @@ to_call = /mob/living/carbon/human/proc/nano_copy_body #undef PER_LIMB_STEEL_COST + +/mob/living/carbon/human/proc/chest_transparency_toggle() + set name = "transparency toggle (chest only)" + set category = "Abilities.Protean" + if(stat || world.time < last_special) + return + last_special = world.time + 50 + for(var/obj/item/organ/external/proteanlimbs as anything in src.organs) + if(proteanlimbs.organ_tag != BP_TORSO) + continue + proteanlimbs.transparent = !proteanlimbs.transparent + visible_message("\The [src]'s internal composition seems to change.") + update_icons_body() + update_hair() + +/obj/effect/protean_ability/chest_transparency + ability_name = "transparency toggle (chest only)" + desc = "Makes your chest transparent." + icon = 'modular_chomp/icons/obj/slimeborg/slimecore.dmi' + icon_state = "core" + to_call = /mob/living/carbon/human/proc/chest_transparency_toggle + +/mob/living/carbon/human/proc/transparency_toggle() + set name = "Toggle Transparency" + set category = "Abilities.Protean" + if(stat || world.time < last_special) + return + last_special = world.time + 50 + for(var/obj/item/organ/external/proteanlimbs as anything in src.organs) + proteanlimbs.transparent = !proteanlimbs.transparent + + visible_message("\The [src]'s internal composition seems to change.") + update_icons_body() + update_hair() + +/obj/effect/protean_ability/transparency_for_entire_body + ability_name = "Toggle Transparency" + desc = "transparency toggle for your entire body" + icon = 'modular_chomp/icons/obj/slimeborg/slimecore.dmi' + icon_state = "core" + to_call = /mob/living/carbon/human/proc/transparency_toggle diff --git a/modular_chomp/icons/obj/slimeborg/slimecore.dmi b/modular_chomp/icons/obj/slimeborg/slimecore.dmi new file mode 100644 index 0000000000000000000000000000000000000000..761a44804cb9bbfe3177264d3a25cee7020ce6da GIT binary patch literal 412 zcmV;N0b~A&P)JTnrG;v^mP>(TQ;%|7nr>^efMlwBbj6Qep?O-EcTtOIXt9b;hGtuw zcUP8mV5Ws-t%zt(hra*-00DGTPE!Ct=GbNc003lqR9JLGWpiV4X>fFDZ*Bkpc$`yK zaB_9`^iy#0_2eo`Eh^5;&r`5fFwryM;w;ZhDainGjE%TBGg33tGfE(w;*!LYR3KAH ziHkEOv#1!zH00t;D@x2wg|L+sT>V_YCISGOw-^h3tARrR005XtL_t(Ijpfcu0>U5+ zMNtBwgz_!O{sk%)wxhvapvU zjB8;kf8aM7gT88(fC(qzPu7%z)Zc`%nqP$O@