mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-16 02:24:11 +01:00
a4f0dcb76f
## About The Pull Request Merry Christmas! This PR expands on the more gruesome areas of chef content, such as cannibalism. Human limbs can now be individually butchered for their meat and skin with a knife or another butchering implement once the skin has been cut and retracted (forks now can be used as bootleg retractors). If the limb contains organs, those will need to be removed first, which also can be quickly performed with a butchering tool at the cost of damaging the inhards (head and chest will require the bone to be cut first, which can be done with a butcher's cleaver if you don't have a saw) You can also butcher humans whole by right clicking them with a butchering implement on combat mode, which will attempt to gut/cut apart the selected limb. Obviously this requires the limb to be prepped first, so meat hooks/kitchenspikes now allow mobs strung on them to be operated on without needing drapes. Its a pretty bad spot to be performing surgeries at though, so beware! Torsos can only be butchered after all other limbs have been. The gutting/butchering delay is based off the owner's stat, halving if the limb is detached and doubling if the owner is still alive and kicking. <img width="392" height="265" alt="dreamseeker_D7QWbWKStd" src="https://github.com/user-attachments/assets/050d7c25-3572-4b02-ae93-d8efefe54885" /> (The video is too large for github) https://streamable.com/459a0y After being butchered, most limbs will leave behind a nonfunctional skeletal limb (with exceptions like jelly limbs with no skeleton inside) which is always disabled. Skeleton chests husk their owner, so you'll need to replace it first. Gibbers now source their meat from the victim's limbs (and not their species) at an RNG-based percentage based on the matter bin's tier. As to allow individual limbs to be butchered, you can now perform (some) surgeries on individual limbs. There are some obvious restrictions like zombification or bioware surgeries, but most of the ones that make sense can be performed on someone's chopped off head as long as you've got the tools. Wounds also contribute to surgeries now, major slash wounds count as cut/open skin (and sealing the vessels would reduce their bleed rate), and critical blunt wounds count as sawed bones. I've refactored gibbers, butchering and meat spike code as well as fixed some backend bugs while I was at it. ## Why It's Good For The Game While rather gruesome, I feel like the freedom which these mechanics provide fits us pretty well. We already have plenty of nasty stuff and this doesn't really go that much further, and a chef serving their own leg in their dish is pretty funny. (Also you can scrape plasma off plasmamen bones)
104 lines
4.5 KiB
Plaintext
104 lines
4.5 KiB
Plaintext
/datum/surgery_operation/organ/lobotomy
|
|
name = "lobotomize"
|
|
rnd_name = "Lobotomy (Lobotomy)"
|
|
desc = "Repair most of a patient's brain traumas, with the risk of causing new permanent traumas."
|
|
rnd_desc = "An invasive surgical procedure which guarantees removal of almost all brain traumas, but might cause another permanent trauma in return."
|
|
operation_flags = OPERATION_MORBID | OPERATION_AFFECTS_MOOD | OPERATION_LOCKED | OPERATION_NOTABLE | OPERATION_NO_PATIENT_REQUIRED
|
|
implements = list(
|
|
TOOL_SCALPEL = 1.15,
|
|
/obj/item/melee/energy/sword = 0.55,
|
|
/obj/item/knife = 2.85,
|
|
/obj/item/shard = 4,
|
|
/obj/item = 5,
|
|
)
|
|
target_type = /obj/item/organ/brain
|
|
required_organ_flag = ORGAN_TYPE_FLAGS & ~ORGAN_ROBOTIC
|
|
preop_sound = 'sound/items/handling/surgery/scalpel1.ogg'
|
|
success_sound = 'sound/items/handling/surgery/scalpel2.ogg'
|
|
failure_sound = 'sound/items/handling/surgery/organ2.ogg'
|
|
all_surgery_states_required = SURGERY_SKIN_OPEN|SURGERY_BONE_SAWED
|
|
any_surgery_states_blocked = SURGERY_VESSELS_UNCLAMPED
|
|
|
|
/datum/surgery_operation/organ/lobotomy/get_any_tool()
|
|
return "Any sharp edged item"
|
|
|
|
/datum/surgery_operation/organ/lobotomy/tool_check(obj/item/tool)
|
|
// Require edged sharpness OR a tool behavior match
|
|
return ((tool.get_sharpness() & SHARP_EDGED) || implements[tool.tool_behaviour])
|
|
|
|
/datum/surgery_operation/organ/lobotomy/on_preop(obj/item/organ/brain/organ, mob/living/surgeon, obj/item/tool, list/operation_args)
|
|
display_results(
|
|
surgeon,
|
|
organ.owner,
|
|
span_notice("You begin to perform a lobotomy on [FORMAT_ORGAN_OWNER(organ)]'s brain..."),
|
|
span_notice("[surgeon] begins to perform a lobotomy on [FORMAT_ORGAN_OWNER(organ)]'s brain."),
|
|
span_notice("[surgeon] begins to perform surgery on [FORMAT_ORGAN_OWNER(organ)]'s brain."),
|
|
)
|
|
display_pain(organ.owner, "Your head pounds with unimaginable pain!")
|
|
|
|
/datum/surgery_operation/organ/lobotomy/on_success(obj/item/organ/brain/organ, mob/living/surgeon, obj/item/tool, list/operation_args)
|
|
display_results(
|
|
surgeon,
|
|
organ.owner,
|
|
span_notice("You successfully perform a lobotomy on [FORMAT_ORGAN_OWNER(organ)]!"),
|
|
span_notice("[surgeon] successfully lobotomizes [FORMAT_ORGAN_OWNER(organ)]!"),
|
|
span_notice("[surgeon] finishes performing surgery on [FORMAT_ORGAN_OWNER(organ)]'s brain."),
|
|
)
|
|
display_pain(organ.owner, "Your head goes totally numb for a moment, the pain is overwhelming!")
|
|
|
|
organ.cure_all_traumas(TRAUMA_RESILIENCE_LOBOTOMY)
|
|
if (organ.owner)
|
|
organ.owner.mind?.remove_antag_datum(/datum/antagonist/brainwashed)
|
|
else if (organ.brainmob)
|
|
organ.brainmob.mind?.remove_antag_datum(/datum/antagonist/brainwashed)
|
|
|
|
if(!prob(75))
|
|
return
|
|
|
|
switch(rand(1, 3))//Now let's see what hopefully-not-important part of the brain we cut off
|
|
if(1)
|
|
organ.gain_trauma_type(BRAIN_TRAUMA_MILD, TRAUMA_RESILIENCE_MAGIC)
|
|
if(2)
|
|
if(HAS_TRAIT(organ, TRAIT_SPECIAL_TRAUMA_BOOST) && prob(50))
|
|
organ.gain_trauma_type(BRAIN_TRAUMA_SPECIAL, TRAUMA_RESILIENCE_MAGIC)
|
|
else
|
|
organ.gain_trauma_type(BRAIN_TRAUMA_SEVERE, TRAUMA_RESILIENCE_MAGIC)
|
|
if(3)
|
|
organ.gain_trauma_type(BRAIN_TRAUMA_SPECIAL, TRAUMA_RESILIENCE_MAGIC)
|
|
|
|
/datum/surgery_operation/organ/lobotomy/on_failure(obj/item/organ/brain/organ, mob/living/surgeon, obj/item/tool, list/operation_args)
|
|
display_results(
|
|
surgeon,
|
|
organ.owner,
|
|
span_warning("You remove the wrong part, causing more damage!"),
|
|
span_notice("[surgeon] unsuccessfully attempts to lobotomize [FORMAT_ORGAN_OWNER(organ)]!"),
|
|
span_notice("[surgeon] completes the surgery on [FORMAT_ORGAN_OWNER(organ)]'s brain."),
|
|
)
|
|
display_pain(organ.owner, "The pain in your head only seems to get worse!")
|
|
organ.apply_organ_damage(80)
|
|
switch(rand(1, 3))
|
|
if(1)
|
|
organ.gain_trauma_type(BRAIN_TRAUMA_MILD, TRAUMA_RESILIENCE_MAGIC)
|
|
if(2)
|
|
if(HAS_TRAIT(organ, TRAIT_SPECIAL_TRAUMA_BOOST) && prob(50))
|
|
organ.gain_trauma_type(BRAIN_TRAUMA_SPECIAL, TRAUMA_RESILIENCE_MAGIC)
|
|
else
|
|
organ.gain_trauma_type(BRAIN_TRAUMA_SEVERE, TRAUMA_RESILIENCE_MAGIC)
|
|
if(3)
|
|
organ.gain_trauma_type(BRAIN_TRAUMA_SPECIAL, TRAUMA_RESILIENCE_MAGIC)
|
|
|
|
/datum/surgery_operation/organ/lobotomy/mechanic
|
|
name = "execute neural defragging"
|
|
rnd_name = "Wetware OS Destructive Defragmentation (Lobotomy)"
|
|
implements = list(
|
|
TOOL_MULTITOOL = 1.15,
|
|
/obj/item/melee/energy/sword = 1.85,
|
|
/obj/item/knife = 2.85,
|
|
/obj/item/shard = 4,
|
|
/obj/item = 5,
|
|
)
|
|
preop_sound = 'sound/items/taperecorder/tape_flip.ogg'
|
|
success_sound = 'sound/items/taperecorder/taperecorder_close.ogg'
|
|
required_organ_flag = ORGAN_ROBOTIC
|
|
operation_flags = parent_type::operation_flags | OPERATION_MECHANIC
|