Fixes some runtimes
This commit is contained in:
@@ -345,10 +345,12 @@
|
|||||||
gain_text = "<span class='danger'>You find yourself unable to speak!</span>"
|
gain_text = "<span class='danger'>You find yourself unable to speak!</span>"
|
||||||
lose_text = "<span class='notice'>You feel a growing strength in your vocal chords.</span>"
|
lose_text = "<span class='notice'>You feel a growing strength in your vocal chords.</span>"
|
||||||
medical_record_text = "Functionally mute, patient is unable to use their voice in any capacity."
|
medical_record_text = "Functionally mute, patient is unable to use their voice in any capacity."
|
||||||
|
var/datum/brain_trauma/severe/mute/mute
|
||||||
|
|
||||||
/datum/quirk/mute/add()
|
/datum/quirk/mute/add()
|
||||||
var/mob/living/carbon/human/H = quirk_holder
|
var/mob/living/carbon/human/H = quirk_holder
|
||||||
H.gain_trauma(TRAIT_MUTE, TRAUMA_RESILIENCE_SURGERY)
|
mute = new
|
||||||
|
H.gain_trauma(mute, TRAUMA_RESILIENCE_SURGERY)
|
||||||
|
|
||||||
/datum/quirk/mute/on_process()
|
/datum/quirk/mute/on_process()
|
||||||
if(quirk_holder.mind && LAZYLEN(quirk_holder.mind.antag_datums))
|
if(quirk_holder.mind && LAZYLEN(quirk_holder.mind.antag_datums))
|
||||||
|
|||||||
@@ -323,9 +323,11 @@
|
|||||||
return FALSE
|
return FALSE
|
||||||
if(!resilience)
|
if(!resilience)
|
||||||
resilience = initial(trauma.resilience)
|
resilience = initial(trauma.resilience)
|
||||||
|
if(!owner)
|
||||||
|
return FALSE
|
||||||
if(owner.stat == DEAD)
|
if(owner.stat == DEAD)
|
||||||
return FALSE
|
return FALSE
|
||||||
|
|
||||||
var/resilience_tier_count = 0
|
var/resilience_tier_count = 0
|
||||||
for(var/X in traumas)
|
for(var/X in traumas)
|
||||||
if(istype(X, trauma))
|
if(istype(X, trauma))
|
||||||
|
|||||||
Reference in New Issue
Block a user