Skin Masquerade: Epidermal Applicator, Lifelike Quirk, and the Skinmonger Implant (#31185)

* adds the epidermal applicator, lifelike quirk, and skinmonger traitor implant

* lint

* lint

* attack chain fix

* more linty fixes

* more lint

* fix some buggy bugs, synthetic skinned body parts recolor to their host

* make emp on skinmonger work, fix a skinmonger bug

* make bruising / denting examine text not betray the masquerade

* burn away synthetic skin with acid

* comment / code structure / description tweaks

* i sell pharmaceuticals and pharmaceutical accessories

* code review comments

* oops

* god damn it

* god damn it (x2)

* Update code/modules/surgery/organs/augments_internal.dm

Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Signed-off-by: Pooble <90473506+poobsie@users.noreply.github.com>

* lower syndi level for implant

* Update code/modules/research/designs/medical_designs.dm

Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com>
Signed-off-by: Pooble <90473506+poobsie@users.noreply.github.com>

* Update code/game/objects/items/tools/epidermal_applicator.dm

Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com>
Signed-off-by: Pooble <90473506+poobsie@users.noreply.github.com>

* Update code/modules/surgery/organs/organ_external.dm

Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com>
Signed-off-by: Pooble <90473506+poobsie@users.noreply.github.com>

* Update code/modules/surgery/organs/organ_external.dm

Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com>
Signed-off-by: Pooble <90473506+poobsie@users.noreply.github.com>

* tweaks for review

* Update code/__DEFINES/dcs/datum_signals.dm

Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Signed-off-by: Pooble <90473506+poobsie@users.noreply.github.com>

---------

Signed-off-by: Pooble <90473506+poobsie@users.noreply.github.com>
Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com>
Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
Pooble
2026-03-22 22:08:25 +00:00
committed by GitHub
co-authored by 1080pCat JimKil3 PollardTheDragon
parent 11486a2245
commit aaeb5fdf28
18 changed files with 679 additions and 8 deletions
@@ -1094,6 +1094,182 @@
REMOVE_TRAIT(M, TRAIT_IPC_CAN_EAT, "ipc_food[UID()]")
return ..()
/obj/item/organ/internal/cyberimp/chest/skinmonger
name = "\improper Skinmonger"
desc = "A strange implant that continuously produces and replaces synthetic skin. \
Will not apply skin to a monitor-shaped head."
implant_color = "#FFDDAA"
slot = "chest_synthetic_skin"
w_class = WEIGHT_CLASS_TINY
origin_tech = "materials=6;biotech=7;syndicate=1"
augment_icon = "nutripump"
/// Whether regeneration is allowed. This is disabled temporarily by an EMP
var/regeneration_active = TRUE
/// How long to wait after finding a target body part to replace skin on
var/regen_cooldown = 30 SECONDS
/// Whether we're currently regenerating
var/regenerating = FALSE
/// Normally synthetic skin doesn't have memory of the identity we're disguised as. This implant does, though
var/configured_identity = "Unknown"
/// Flag for tracking if we've used up the implant's initial deployment of skin
var/initial_surge_used = FALSE
/obj/item/organ/internal/cyberimp/chest/skinmonger/insert(mob/living/carbon/M, special = 0)
. = ..()
if(!initial_surge_used)
apply_full_synthetic_skin(M)
to_chat(M, SPAN_WARNING("In an instant, a surge of skin wraps around you and binds itself to your body!"))
playsound(M, 'sound/surgery/organ2.ogg', 70, TRUE, frequency = 0.8)
initial_surge_used = TRUE
/obj/item/organ/internal/cyberimp/chest/skinmonger/remove(mob/living/carbon/M, special = 0)
. = ..()
regenerating = FALSE
remove_all_synthetic_skin(M)
// Called when synthetic skin is removed from any part - starts regeneration cycle
/obj/item/organ/internal/cyberimp/chest/skinmonger/proc/start_regeneration()
if(!regeneration_active || regenerating)
return
regenerating = TRUE
// Wait before we trigger the first regen.
addtimer(CALLBACK(src, PROC_REF(regenerate_next_part)), regen_cooldown)
/obj/item/organ/internal/cyberimp/chest/skinmonger/proc/regenerate_next_part()
if(!owner || !regeneration_active || !regenerating)
return
var/mob/living/carbon/human/H = owner
var/list/unskinned_parts = list()
// Find all robotic parts without synthetic skin.
for(var/obj/item/organ/external/E in H.bodyparts)
if(!E.is_robotic() || E.has_synthetic_skin)
continue
// Skip monitor heads
if(E.limb_name == "head" && E.model)
var/datum/robolimb/R = GLOB.all_robolimbs[E.model]
if(R && R.is_monitor)
continue
unskinned_parts += E
// If no parts need skin, kill the regen cycle
if(!length(unskinned_parts))
regenerating = FALSE
return
// Pick a random part and apply skin
var/obj/item/organ/external/chosen_part = pick(unskinned_parts)
chosen_part.has_synthetic_skin = TRUE
// Apply owner's skin color to synthetic skin
if(ishuman(H))
chosen_part.synthetic_skin_colour = H.skin_colour
// Set identity for head regeneration
if(chosen_part.limb_name == "head")
var/identity_to_use = configured_identity
chosen_part.synthetic_skin_identity = identity_to_use
if(ishuman(H))
H.real_name = identity_to_use
// Chest and lower body tied together for regeneration
if(chosen_part.limb_name == "chest")
var/obj/item/organ/external/groin_limb = H.bodyparts_by_name["groin"]
if(groin_limb && groin_limb.is_robotic() && !groin_limb.has_synthetic_skin)
groin_limb.has_synthetic_skin = TRUE
groin_limb.synthetic_skin_colour = H.skin_colour
groin_limb.force_icon = null
groin_limb.mob_icon = null
groin_limb.compile_icon()
if(chosen_part.limb_name == "groin")
var/obj/item/organ/external/chest_limb = H.bodyparts_by_name["chest"]
if(chest_limb && chest_limb.is_robotic() && !chest_limb.has_synthetic_skin)
chest_limb.has_synthetic_skin = TRUE
chest_limb.synthetic_skin_colour = H.skin_colour
chest_limb.force_icon = null
chest_limb.mob_icon = null
chest_limb.compile_icon()
// Refresh sprite
chosen_part.force_icon = null
chosen_part.mob_icon = null
chosen_part.compile_icon()
H.update_body(rebuild_base = TRUE)
to_chat(H, SPAN_NOTICE("You feel a wave of synthetic skin gush forth and bind to your [chosen_part.name]."))
// Schedule next regeneration if more parts need skin. Otherwise, we're done
if(length(unskinned_parts) > 1)
addtimer(CALLBACK(src, PROC_REF(regenerate_next_part)), regen_cooldown)
else
regenerating = FALSE
// One-time application of skin across the entire chassis when the implant is inserted.
/obj/item/organ/internal/cyberimp/chest/skinmonger/proc/apply_full_synthetic_skin(mob/living/carbon/human/target)
if(!ishuman(target))
return
var/mob/living/carbon/human/H = target
var/head_skinned = FALSE
for(var/obj/item/organ/external/E in H.bodyparts)
if(!E.is_robotic() || E.has_synthetic_skin)
continue
// Skip monitor heads
if(E.limb_name == "head" && E.model)
var/datum/robolimb/R = GLOB.all_robolimbs[E.model]
if(R && R.is_monitor)
continue
E.has_synthetic_skin = TRUE
// Apply owner's skin color to synthetic skin
E.synthetic_skin_colour = H.skin_colour
// Set configured identity for head
if(E.limb_name == "head")
E.synthetic_skin_identity = configured_identity
head_skinned = TRUE
// Clear sprite cache
E.force_icon = null
E.mob_icon = null
E.compile_icon()
// Apply facial identity if head was skinned
if(head_skinned)
H.real_name = configured_identity
H.update_body(rebuild_base = TRUE)
/obj/item/organ/internal/cyberimp/chest/skinmonger/proc/remove_all_synthetic_skin(mob/living/carbon/human/target)
if(!ishuman(target))
return
var/mob/living/carbon/human/H = target
for(var/obj/item/organ/external/E in H.bodyparts)
if(E.is_robotic() && E.has_synthetic_skin)
E.remove_synthetic_skin(silent = TRUE) // silent because it spams the user otherwise
to_chat(H, SPAN_WARNING("You feel your synthetic skin melt away."))
H.update_body(rebuild_base = TRUE)
// EMP wipes all synthetic skin and puts the implant on cooldown
/obj/item/organ/internal/cyberimp/chest/skinmonger/emp_act(severity)
. = ..()
regenerating = FALSE
regeneration_active = FALSE
remove_all_synthetic_skin(owner)
addtimer(CALLBACK(src, PROC_REF(restart_regeneration)), regen_cooldown)
/obj/item/organ/internal/cyberimp/chest/skinmonger/proc/restart_regeneration()
if(owner)
regeneration_active = TRUE
start_regeneration()
//BOX O' IMPLANTS
/obj/item/storage/box/cyber_implants