mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] Various Surgery & Medical fixes, QoL, and adjustments (#11949)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
56b99cc173
commit
a6dcc16233
@@ -395,8 +395,10 @@
|
||||
return
|
||||
|
||||
//set oxyloss so that the patient is just barely in crit, if possible
|
||||
var/barely_in_crit = H.get_crit_point() - 1
|
||||
var/barely_in_crit = -(H.get_crit_point() - 1) //Assume get_crit_point will return -50, so we take the inverse of it.
|
||||
var/adjust_health = barely_in_crit - H.health //need to increase health by this much
|
||||
if(adjust_health < 0) //We got a negative value. Safety in case of weird fuckery.
|
||||
adjust_health *= -1
|
||||
H.adjustOxyLoss(-adjust_health)
|
||||
|
||||
if(H.isSynthetic())
|
||||
|
||||
Reference in New Issue
Block a user