mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 06:54:18 +01:00
Diona Null Invoke Fix (#22493)
Fix for https://aurorastation.sentry.io/issues/7409286369 Which produced a runtime error (and associated hard del) when a Diona enters a cryopod.
This commit is contained in:
@@ -370,15 +370,14 @@ and some alternative things that are toxic to other life, such as radium and mut
|
||||
|
||||
updatehealth()
|
||||
|
||||
/mob/living/carbon/human/proc/diona_regen_progress(var/datum/dionastats/DS)
|
||||
/mob/living/carbon/human/proc/diona_regen_progress(datum/dionastats/DS)
|
||||
if(!DS)
|
||||
return
|
||||
if(DS.regen_limb_progress > LIMB_REGROW_REQUIREMENT)
|
||||
DS.regen_limb.Invoke()
|
||||
DS.regen_limb?.Invoke()
|
||||
DS.regen_limb = null
|
||||
if(DS.regen_extra)
|
||||
DS.regen_extra.Invoke()
|
||||
DS.regen_extra = null
|
||||
DS.regen_extra?.Invoke()
|
||||
DS.regen_extra = null
|
||||
var/progress = nutrition * 0.45
|
||||
adjustNutritionLoss(nutrition * 0.15)
|
||||
progress += DS.stored_energy * 0.3
|
||||
|
||||
Reference in New Issue
Block a user