mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
Reviving the revival of revivers reviving. Revival edition. (#27436)
* reviver * toxic * more changes * final changes * I lied one more * woe rename apon thee * Update code/modules/surgery/organs/augments_internal.dm Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -673,14 +673,23 @@
|
||||
/datum/status_effect/hope/tick()
|
||||
if(owner.stat == DEAD || owner.health <= HEALTH_THRESHOLD_DEAD) // No dead healing, or healing in dead crit
|
||||
return
|
||||
var/heal_multiplier = 0
|
||||
switch(owner.health)
|
||||
if(50 to INFINITY)
|
||||
heal_multiplier = 1
|
||||
if(0 to 50)
|
||||
heal_multiplier = 2
|
||||
if(-50 to 0)
|
||||
heal_multiplier = 3
|
||||
if(-100 to -50)
|
||||
heal_multiplier = 4
|
||||
owner.adjustBruteLoss(-heal_multiplier)
|
||||
owner.adjustFireLoss(-heal_multiplier)
|
||||
owner.adjustOxyLoss(-heal_multiplier)
|
||||
if(owner.health > 50)
|
||||
if(prob(0.5))
|
||||
hope_message()
|
||||
return
|
||||
var/heal_multiplier = min(3, ((50 - owner.health) / 50 + 1)) // 1 hp at 50 health, 2 at 0, 3 at -50
|
||||
owner.adjustBruteLoss(-heal_multiplier * 0.5)
|
||||
owner.adjustFireLoss(-heal_multiplier * 0.5)
|
||||
owner.adjustOxyLoss(-heal_multiplier)
|
||||
if(prob(heal_multiplier * 2))
|
||||
hope_message()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user