Adds contortionist's envirosuit (Plasmaman contortionist's) (#28481)

* plasma in the vents (not literally)

* oops i pressed a random button while typing

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: Ahzpy <88119260+Ahzpy@users.noreply.github.com>

* formatting

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: Ahzpy <88119260+Ahzpy@users.noreply.github.com>

* Update code/modules/clothing/under/jobs/plasmamen/engineering_plasmasuits.dm

not sure what this is, code is copied from original contortionist's. might be worth fixing

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: Ahzpy <88119260+Ahzpy@users.noreply.github.com>

* false and true

0 to false and 1 to true

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Signed-off-by: Ahzpy <88119260+Ahzpy@users.noreply.github.com>

---------

Signed-off-by: Ahzpy <88119260+Ahzpy@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
Ahzpy
2025-03-15 01:57:19 -07:00
committed by GitHub
parent ff8630917a
commit b2e463444e
3 changed files with 44 additions and 0 deletions
@@ -20,3 +20,30 @@
item_state = "atmos_envirosuit"
item_color = "atmos_envirosuit"
/obj/item/clothing/under/plasmaman/atmospherics/contortionist
name = "atmospherics plasma envirosuit"
desc = "An airtight suit designed to be used by plasmemen for squeezing through narrow vents."
resistance_flags = FIRE_PROOF
/obj/item/clothing/under/plasmaman/atmospherics/contortionist/equipped(mob/living/carbon/human/user, slot)
. = ..()
if(slot != ITEM_SLOT_JUMPSUIT)
return
if(!user.ventcrawler)
user.ventcrawler = VENTCRAWLER_ALWAYS
/obj/item/clothing/under/plasmaman/atmospherics/contortionist/dropped(mob/living/carbon/human/user)
. = ..()
if(user.get_item_by_slot(ITEM_SLOT_JUMPSUIT) != src)
return
if(!user.get_int_organ(/obj/item/organ/internal/heart/gland/ventcrawling)) // This is such a snowflaky check
user.ventcrawler = VENTCRAWLER_NONE
/obj/item/clothing/under/plasmaman/atmospherics/contortionist/proc/check_clothing(mob/user)
//Allowed to wear: glasses, shoes, gloves, pockets, mask, jumpsuit (obviously), and helmet (obviously)
var/list/slot_must_be_empty = list(ITEM_SLOT_BACK, ITEM_SLOT_HANDCUFFED, ITEM_SLOT_LEGCUFFED, ITEM_SLOT_LEFT_HAND, ITEM_SLOT_RIGHT_HAND, ITEM_SLOT_BELT, ITEM_SLOT_OUTER_SUIT)
for(var/slot_id in slot_must_be_empty)
if(user.get_item_by_slot(slot_id))
to_chat(user,"<span class='warning'>You can't fit inside while wearing [user.get_item_by_slot(slot_id)].</span>")
return FALSE
return TRUE
@@ -474,6 +474,14 @@ GLOBAL_LIST_INIT(ventcrawl_machinery, list(/obj/machinery/atmospherics/unary/ven
if(!C.check_clothing(src))//return values confuse me right now
return
if(ishuman(src))
var/mob/living/carbon/human/H = src
if(H.w_uniform && istype(H.w_uniform, /obj/item/clothing/under/plasmaman/atmospherics/contortionist))
var/obj/item/clothing/under/plasmaman/atmospherics/contortionist/C = H.w_uniform
if(!C.check_clothing(src))
return
var/obj/machinery/atmospherics/unary/vent_found
if(clicked_on)