mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Protean transparency ability (#8946)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user