From f8b07b33e15cc3d63bc65175624e58ee6cb2eda4 Mon Sep 17 00:00:00 2001 From: Molti <108117184+Moltijoe@users.noreply.github.com> Date: Sat, 11 May 2024 13:42:16 -0500 Subject: [PATCH] Update snowdin.dm (#22018) --- .../awaymissions/mission_code/snowdin.dm | 31 ++++++++++++------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/code/modules/awaymissions/mission_code/snowdin.dm b/code/modules/awaymissions/mission_code/snowdin.dm index d0fd93cd4224..79791e0e821d 100644 --- a/code/modules/awaymissions/mission_code/snowdin.dm +++ b/code/modules/awaymissions/mission_code/snowdin.dm @@ -232,25 +232,34 @@ for(var/BP in PP.bodyparts) var/obj/item/bodypart/NN = BP - if(NN.status == BODYPART_ORGANIC && NN.species_id != "plasmaman") //getting every organic, non-plasmaman limb (augments/androids are immune to this) - plasma_parts += NN if(NN.status == BODYPART_ROBOTIC) robo_parts += NN + if(NN.body_zone == BODY_ZONE_HEAD) //don't add the head to the list, just transform them into an plasmaman when it's the only thing left + continue + if(NN.status == BODYPART_ORGANIC && !(NN.species_id == "plasmaman" || NN.species_id == "husk")) //getting every organic, non-plasmaman limb (augments/androids are immune to this) + plasma_parts += NN if(prob(35)) //checking if the delay is over & if the victim actually has any parts to nom PP.adjustToxLoss(15) PP.adjustFireLoss(25) - if(plasma_parts.len) - var/obj/item/bodypart/NB = pick(plasma_parts) //using the above-mentioned list to get a choice of limbs for dismember() to use - PP.emote("scream") - NB.species_id = "plasmaman"//change the species_id of the limb to that of a plasmaman - NB.no_update = TRUE - NB.change_bodypart_status() - PP.visible_message(span_warning("[L] screams in pain as [L.p_their()] [NB] melts down to the bone!"), \ - span_userdanger("You scream out in pain as your [NB] melts down to the bone, leaving an eerie plasma-like glow where flesh used to be!")) - if(!plasma_parts.len && !robo_parts.len) //a person with no potential organic limbs left AND no robotic limbs, time to turn them into a plasmaman + if(length(plasma_parts)) + var/obj/item/bodypart/NB = pick(plasma_parts) //using the above-mentioned list to get a choice of limbs to replace + playsound(PP, 'sound/effects/wounds/sizzle2.ogg', 80, TRUE) + if(PP.stat != DEAD) + PP.emote("scream") + PP.visible_message(span_warning("[L] screams in pain as [L.p_their()] [NB] melts down to the bone!"), span_userdanger("You scream out in pain as your [NB] melts down to the bone, leaving an eerie plasma-like glow where flesh used to be!")) + else + PP.visible_message(span_warning("[L]'s [NB] melts down to the bone!")) + var/obj/item/bodypart/replacement_part = new NB.type + replacement_part.species_id = "plasmaman" + replacement_part.original_owner = "plasma river" + replacement_part.replace_limb(PP) + qdel(NB) + else if(!length(robo_parts)) //a person with no potential organic limbs left AND no robotic limbs, time to turn them into a plasmaman PP.ignite_mob() + PP.cure_husk(BURN) //cure the probable husk first PP.set_species(/datum/species/plasmaman) + PP.regenerate_icons() PP.visible_message(span_warning("[L] bursts into a brilliant purple flame as [L.p_their()] entire body is that of a skeleton!"), \ span_userdanger("Your senses numb as all of your remaining flesh is turned into a purple slurry, sloshing off your body and leaving only your bones to show in a vibrant purple!"))