[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:
CitadelStationBot
2018-03-15 20:50:10 -05:00
committed by Poojawa
parent 31d988344a
commit 0bf1f7ce14
8 changed files with 34 additions and 27 deletions
-8
View File
@@ -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)
+1 -1
View File
@@ -14,7 +14,7 @@
var/list/trigger_turfs
var/list/trigger_species
/datum/brain_trauma/mild/phobia/New(mob/living/carbon/C, _permanent, specific_type)
/datum/brain_trauma/mild/phobia/New(specific_type)
phobia_type = specific_type
if(!phobia_type)
phobia_type = pick(SStraumas.phobia_types)