mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 09:02:27 +00:00
Cryo and CPR bug fixes (#8960)
This commit is contained in:
@@ -278,9 +278,7 @@
|
||||
occupant.adjustOxyLoss(-1)
|
||||
//severe damage should heal waaay slower without proper chemicals
|
||||
if(occupant.bodytemperature < 225)
|
||||
if (!occupant.is_diona())
|
||||
if (occupant.getToxLoss())
|
||||
occupant.adjustToxLoss(max(-1, -20/occupant.getToxLoss()))
|
||||
if(!occupant.is_diona())
|
||||
var/heal_brute = occupant.getBruteLoss() ? min(1, 20/occupant.getBruteLoss()) : 0
|
||||
var/heal_fire = occupant.getFireLoss() ? min(1, 20/occupant.getFireLoss()) : 0
|
||||
occupant.heal_organ_damage(heal_brute,heal_fire)
|
||||
|
||||
@@ -123,7 +123,7 @@
|
||||
H.visible_message("<span class='notice'>\The [H] performs CPR on \the [src]!</span>")
|
||||
|
||||
if(is_asystole())
|
||||
if(prob(5 * rand(0.5, 1)))
|
||||
if(prob(5 * rand(2, 3)))
|
||||
var/obj/item/organ/external/chest = get_organ(BP_CHEST)
|
||||
if(chest)
|
||||
chest.fracture()
|
||||
|
||||
Reference in New Issue
Block a user