mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 21:27:01 +01:00
[MIRROR] Various medical features and adjustments. Kiosk rework. (#10321)
Co-authored-by: Cameron Lennox <killer65311@gmail.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
co-authored by
Cameron Lennox
Kashargul
parent
aff135e946
commit
11e9fd3516
@@ -11,7 +11,6 @@
|
||||
if(!owner)
|
||||
return
|
||||
|
||||
//VOREStation Edit Start Lungs were a surprisingly lethal cause of bloodloss.
|
||||
if(is_broken())
|
||||
if(prob(4))
|
||||
spawn owner?.custom_emote(VISIBLE_MESSAGE, "coughs up a large amount of blood!")
|
||||
@@ -29,7 +28,6 @@
|
||||
if(prob(4)) //Get to medical quickly. but shouldn't kill without exceedingly bad RNG.
|
||||
spawn owner?.custom_emote(VISIBLE_MESSAGE, "gasps for air!")
|
||||
owner.AdjustLosebreath(10) //Losebreath is a DoT that does 1:1 damage and prevents oxyloss healing via breathing.
|
||||
//VOREStation Edit End
|
||||
|
||||
if(owner.internal_organs_by_name[O_BRAIN]) // As the brain starts having Trouble, the lungs start malfunctioning.
|
||||
var/obj/item/organ/internal/brain/Brain = owner.internal_organs_by_name[O_BRAIN]
|
||||
@@ -39,7 +37,7 @@
|
||||
owner.AdjustLosebreath(round(3 / max(0.1,Brain.get_control_efficiency())))
|
||||
|
||||
/obj/item/organ/internal/lungs/proc/rupture()
|
||||
if(owner)
|
||||
if(owner && damage < min_bruised_damage) //Anti spam prevention.
|
||||
var/obj/item/organ/external/parent = owner.get_organ(parent_organ)
|
||||
if(istype(parent))
|
||||
owner.custom_pain("You feel a stabbing pain in your [parent.name]!", 50)
|
||||
|
||||
Reference in New Issue
Block a user