Files
Bubberstation/code/modules/surgery/lipoplasty.dm
T
grungussussandGitHub 58501dce77 Reorganizes the sound folder (#86726)
## About The Pull Request

<details>

- renamed ai folder to announcer

-- announcer --
- moved vox_fem to announcer
- moved approachingTG to announcer

- separated the ambience folder into ambience and instrumental
-- ambience --

- created holy folder moved all related sounds there
- created engineering folder and moved all related sounds there
- created security folder and moved ambidet there
- created general folder and moved ambigen there
- created icemoon folder and moved all icebox-related ambience there
- created medical folder and moved all medbay-related ambi there
- created ruin folder and moves all ruins ambi there
- created beach folder and moved seag and shore there
- created lavaland folder and moved related ambi there
- created aurora_caelus folder and placed its ambi there
- created misc folder and moved the rest of the files that don't have a
specific category into it

-- instrumental --

- moved traitor folder here
- created lobby_music folder and placed our songs there (title0 not used
anywhere? - server-side modification?)

-- items --

- moved secdeath to hailer
- moved surgery to handling

-- effects --

- moved chemistry into effects
- moved hallucinations into effects
- moved health into effects
- moved magic into effects

-- vehicles --

- moved mecha into vehicles


created mobs folder

-- mobs --

- moved creatures folder into mobs
- moved voice into mobs

renamed creatures to non-humanoids
renamed voice to humanoids

-- non-humanoids--

created cyborg folder
created hiss folder
moved harmalarm.ogg to cyborg

-- humanoids --




-- misc --

moved ghostwhisper to misc
moved insane_low_laugh to misc

I give up trying to document this.

</details>

- [X] ambience
- [x] announcer
- [x] effects
- [X] instrumental
- [x] items
- [x] machines
- [x] misc 
- [X] mobs
- [X] runtime
- [X] vehicles

- [ ] attributions

## Why It's Good For The Game

This folder is so disorganized that it's vomit inducing, will make it
easier to find and add new sounds, providng a minor structure to the
sound folder.

## Changelog
🆑 grungussuss
refactor: the sound folder in the source code has been reorganized,
please report any oddities with sounds playing or not playing
server: lobby music has been repathed to sound/music/lobby_music
/🆑
2024-09-23 22:24:50 -07:00

144 lines
4.9 KiB
Plaintext

/datum/surgery/lipoplasty
name = "Lipoplasty"
possible_locs = list(BODY_ZONE_CHEST)
steps = list(
/datum/surgery_step/incise,
/datum/surgery_step/clamp_bleeders,
/datum/surgery_step/cut_fat,
/datum/surgery_step/remove_fat,
/datum/surgery_step/close,
)
/datum/surgery/lipoplasty/mechanic
name = "Nutrient Reserve Expulsion"
requires_bodypart_type = BODYTYPE_ROBOTIC
steps = list(
/datum/surgery_step/mechanic_open,
/datum/surgery_step/open_hatch,
/datum/surgery_step/mechanic_unwrench,
/datum/surgery_step/cut_fat/mechanic,
/datum/surgery_step/remove_fat/mechanic,
/datum/surgery_step/mechanic_wrench,
/datum/surgery_step/mechanic_close,
)
/datum/surgery/lipoplasty/can_start(mob/user, mob/living/carbon/target)
if(!HAS_TRAIT_FROM(target, TRAIT_FAT, OBESITY) || target.nutrition < NUTRITION_LEVEL_WELL_FED)
return FALSE
return ..()
//cut fat
/datum/surgery_step/cut_fat
name = "cut excess fat (circular saw)"
implements = list(
TOOL_SAW = 100,
/obj/item/shovel/serrated = 75,
/obj/item/hatchet = 35,
/obj/item/knife/butcher = 25,
)
time = 64
surgery_effects_mood = TRUE
preop_sound = list(
/obj/item/circular_saw = 'sound/items/handling/surgery/saw.ogg',
/obj/item = 'sound/items/handling/surgery/scalpel1.ogg',
)
/datum/surgery_step/cut_fat/mechanic
name = "open fat containers (wrench or crowbar)"
implements = list(
TOOL_WRENCH = 95,
TOOL_CROWBAR = 95,
TOOL_SAW = 65,
/obj/item/melee/energy/sword = 65,
/obj/item/knife = 45,
/obj/item/shard = 35,
)
preop_sound = 'sound/items/tools/ratchet.ogg'
success_sound = 'sound/machines/airlock/doorclick.ogg'
/datum/surgery_step/cut_fat/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
user.visible_message(span_notice("[user] begins to cut away [target]'s excess fat."), span_notice("You begin to cut away [target]'s excess fat..."))
display_results(
user,
target,
span_notice("You begin to cut away [target]'s excess fat..."),
span_notice("[user] begins to cut away [target]'s excess fat."),
span_notice("[user] begins to cut [target]'s [target_zone] with [tool]."),
)
display_pain(target, "You feel a stabbing in your [target_zone]!")
/datum/surgery_step/cut_fat/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery, default_display_results)
display_results(
user,
target,
span_notice("You cut [target]'s excess fat loose."),
span_notice("[user] cuts [target]'s excess fat loose!"),
span_notice("[user] finishes the cut on [target]'s [target_zone]."),
)
display_pain(target, "The fat in your [target_zone] comes loose, dangling and hurting like hell!")
return TRUE
//remove fat
/datum/surgery_step/remove_fat
name = "remove loose fat (retractor)"
implements = list(
TOOL_RETRACTOR = 100,
TOOL_SCREWDRIVER = 45,
TOOL_WIRECUTTER = 35,
)
time = 32
preop_sound = 'sound/items/handling/surgery/retractor1.ogg'
success_sound = 'sound/items/handling/surgery/retractor2.ogg'
/datum/surgery_step/remove_fat/mechanic
name = "engage expulsion valve (screwdriver or wrench)" //gross
implements = list(
TOOL_SCREWDRIVER = 100,
TOOL_WRENCH = 100,
TOOL_WIRECUTTER = 35,
TOOL_RETRACTOR = 35,
)
preop_sound = 'sound/items/tools/ratchet.ogg'
success_sound = 'sound/items/handling/surgery/organ2.ogg'
/datum/surgery_step/remove_fat/preop(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery)
display_results(
user,
target,
span_notice("You begin to extract [target]'s loose fat..."),
span_notice("[user] begins to extract [target]'s loose fat!"),
span_notice("[user] begins to extract something from [target]'s [target_zone]."),
)
display_pain(target, "You feel an oddly painless tugging on your loose fat!")
/datum/surgery_step/remove_fat/success(mob/user, mob/living/carbon/target, target_zone, obj/item/tool, datum/surgery/surgery, default_display_results = FALSE)
display_results(
user,
target,
span_notice("You extract [target]'s fat."),
span_notice("[user] extracts [target]'s fat!"),
span_notice("[user] extracts [target]'s fat!"),
)
target.overeatduration = 0 //patient is unfatted
var/removednutriment = target.nutrition
target.set_nutrition(NUTRITION_LEVEL_WELL_FED)
removednutriment -= NUTRITION_LEVEL_WELL_FED //whatever was removed goes into the meat
var/mob/living/carbon/human/human = target
var/typeofmeat = /obj/item/food/meat/slab/human
if(target.flags_1 & HOLOGRAM_1)
typeofmeat = null
else if(human.dna && human.dna.species)
typeofmeat = human.dna.species.meat
if(typeofmeat)
var/obj/item/food/meat/slab/human/newmeat = new typeofmeat
newmeat.name = "fatty meat"
newmeat.desc = "Extremely fatty tissue taken from a patient."
newmeat.subjectname = human.real_name
newmeat.subjectjob = human.job
newmeat.reagents.add_reagent (/datum/reagent/consumable/nutriment, (removednutriment / 15)) //To balance with nutriment_factor of nutriment
newmeat.forceMove(target.loc)
return ..()