Cryo and CPR bug fixes (#8960)

This commit is contained in:
Matt Atlas
2020-05-27 03:51:40 +02:00
committed by GitHub
parent 891cd8747c
commit 49690f4be9
3 changed files with 44 additions and 4 deletions

View File

@@ -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)

View File

@@ -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()