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)