[MIRROR] Refactors some trauma code, fixes some trauma heals not working (#5955)
* Refactors some trauma code, fixes some trauma heals not working (#36093) * Refactors some trauma code, fixes some trauma heals not working * that too * fix indent * antur comments * Refactors some trauma code, fixes some trauma heals not working
This commit is contained in:
committed by
Poojawa
parent
31d988344a
commit
0bf1f7ce14
@@ -12,14 +12,6 @@
|
||||
var/can_gain = TRUE //can this be gained through random traumas?
|
||||
var/resilience = TRAUMA_RESILIENCE_BASIC //how hard is this to cure?
|
||||
|
||||
/datum/brain_trauma/New(obj/item/organ/brain/B, _resilience)
|
||||
brain = B
|
||||
owner = B.owner
|
||||
if(_resilience)
|
||||
resilience = _resilience
|
||||
if(owner)
|
||||
on_gain()
|
||||
|
||||
/datum/brain_trauma/Destroy()
|
||||
brain.traumas -= src
|
||||
if(owner)
|
||||
|
||||
Reference in New Issue
Block a user