mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-05-18 04:41:27 +01:00
4899465a23
* bunch of medical adjustments * or so i thought * De-death surgery * Update carbon.dm * Update mob_grab_specials.dm * yeh * Palpation * internal bleeding * Update life.dm * duration increase * adjust these * Fixes a bug with defibs that I caused When I reworked get_crit_point, it caused defibs to DEAL oxyloss instead of HEALING it, like it has been doing for the past 8 years. This fixes it. * fixcees this * fixes syringe stabbing * Converts these to managed global lists * gets rid of disabilities * Change injury check to use do_after with delay * lungfix * actually remove the necrosis * Fixes brain surgery * fix language bug * Update brain.dm * ghetto surgery adjustments Buffs some ghetto surgery Makes some injuries sustained less gnarly if you fail with a ghetto tool. Some mild typo fixes.
71 lines
1.9 KiB
Plaintext
71 lines
1.9 KiB
Plaintext
/obj/item/organ/internal/stomach
|
|
name = "stomach"
|
|
icon_state = "stomach"
|
|
organ_tag = O_STOMACH
|
|
parent_organ = BP_GROIN
|
|
|
|
unacidable = TRUE // Don't melt when holding your acid, dangit.
|
|
|
|
var/acidtype = REAGENT_ID_STOMACID // Incase you want some stomach organ with, say, polyacid instead, or sulphuric.
|
|
var/max_acid_volume = 30
|
|
|
|
/obj/item/organ/internal/stomach/Initialize(mapload)
|
|
. = ..()
|
|
if(reagents)
|
|
reagents.maximum_volume = 30
|
|
else
|
|
create_reagents(30)
|
|
|
|
/obj/item/organ/internal/stomach/handle_organ_proc_special()
|
|
if(owner && ishuman(owner))
|
|
if(reagents)
|
|
if(reagents.total_volume + 2 < max_acid_volume && prob(20))
|
|
reagents.add_reagent(acidtype, rand(1,2))
|
|
|
|
if(is_broken() && prob(1))
|
|
owner.custom_pain("There's a twisting pain in your abdomen!",1)
|
|
owner.vomit(FALSE, TRUE)
|
|
|
|
/obj/item/organ/internal/stomach/handle_germ_effects()
|
|
. = ..() //Up should return an infection level as an integer
|
|
if(!.) return
|
|
|
|
//Bacterial Gastroenteritis
|
|
if (. >= 1)
|
|
if(prob(1))
|
|
owner.custom_pain("There's a twisting pain in your abdomen!",1)
|
|
owner.apply_effect(2, AGONY, 0)
|
|
if (. >= 2)
|
|
if(prob(1) && owner.getToxLoss() < owner.getMaxHealth()*0.2)
|
|
owner.adjustToxLoss(3)
|
|
owner.vomit(FALSE, TRUE)
|
|
|
|
/obj/item/organ/internal/stomach/xeno
|
|
color = "#555555"
|
|
acidtype = REAGENT_ID_PACID
|
|
|
|
/obj/item/organ/internal/stomach/machine
|
|
name = "reagent cycler"
|
|
icon_state = "cycler"
|
|
organ_tag = O_CYCLER
|
|
|
|
robotic = ORGAN_ROBOT
|
|
|
|
acidtype = REAGENT_ID_SACID
|
|
|
|
organ_verbs = list(/mob/living/carbon/human/proc/reagent_purge) //VOREStation Add
|
|
|
|
/obj/item/organ/internal/stomach/machine/handle_organ_proc_special()
|
|
..()
|
|
if(owner && owner.stat != DEAD)
|
|
owner.bodytemperature += round(owner.robobody_count * 0.25, 0.1)
|
|
|
|
/* //VOREStation Removal - normal chem processing
|
|
if(ishuman(owner))
|
|
var/mob/living/carbon/human/H = owner
|
|
|
|
if(H.ingested?.total_volume && H.bloodstr)
|
|
H.ingested.trans_to_holder(H.bloodstr, rand(2,5))
|
|
*/
|
|
return
|