Fixes trauma healing nanites.
This commit is contained in:
@@ -70,9 +70,14 @@
|
||||
rogue_types = list(/datum/nanite_program/brain_decay)
|
||||
|
||||
/datum/nanite_program/brain_heal/check_conditions()
|
||||
if(!host_mob.getBrainLoss())
|
||||
return FALSE
|
||||
return ..()
|
||||
var/problems = FALSE
|
||||
if(iscarbon(host_mob))
|
||||
var/mob/living/carbon/C = host_mob
|
||||
if(length(C.get_traumas()))
|
||||
problems = TRUE
|
||||
if(host_mob.getBrainLoss())
|
||||
problems = TRUE
|
||||
return problems ? ..() : FALSE
|
||||
|
||||
/datum/nanite_program/brain_heal/active_effect()
|
||||
host_mob.adjustBrainLoss(-1, TRUE)
|
||||
@@ -187,10 +192,15 @@
|
||||
rogue_types = list(/datum/nanite_program/brain_decay, /datum/nanite_program/brain_misfire)
|
||||
|
||||
/datum/nanite_program/brain_heal_advanced/check_conditions()
|
||||
if(!host_mob.getBrainLoss())
|
||||
return FALSE
|
||||
return ..()
|
||||
|
||||
var/problems = FALSE
|
||||
if(iscarbon(host_mob))
|
||||
var/mob/living/carbon/C = host_mob
|
||||
if(length(C.get_traumas()))
|
||||
problems = TRUE
|
||||
if(host_mob.getBrainLoss())
|
||||
problems = TRUE
|
||||
return problems ? ..() : FALSE
|
||||
|
||||
/datum/nanite_program/brain_heal_advanced/active_effect()
|
||||
host_mob.adjustBrainLoss(-2, TRUE)
|
||||
if(iscarbon(host_mob) && prob(10))
|
||||
|
||||
Reference in New Issue
Block a user