Alien weed regeneration now mends broken bones

Also, weed regeneration is reduced unless xenos are resting.
This commit is contained in:
mwerezak
2014-12-28 01:22:26 -05:00
parent 6f5f92247a
commit fe348726f2
2 changed files with 36 additions and 6 deletions
+9
View File
@@ -764,6 +764,15 @@ Note that amputating the affected organ does in fact remove the infection from t
suit.supporting_limbs |= src
return
/datum/organ/external/proc/mend_fracture()
if(status & ORGAN_ROBOT)
return 0 //ORGAN_BROKEN doesn't have the same meaning for robot limbs
if(brute_dam > min_broken_damage * config.organ_health_multiplier)
return 0 //will just immediately fracture again
status &= ~ORGAN_BROKEN
return 1
/datum/organ/external/proc/robotize()
src.status &= ~ORGAN_BROKEN
src.status &= ~ORGAN_BLEEDING