Protean transparency ability (#8946)

This commit is contained in:
Asher-42
2024-09-15 10:05:22 -04:00
committed by GitHub
parent bca96a22b3
commit 155ad76e60
2 changed files with 41 additions and 0 deletions

View File

@@ -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("<span class='notice'>\The [src]'s internal composition seems to change.</span>")
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("<span class='notice'>\The [src]'s internal composition seems to change.</span>")
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