Makes brain trauma not roll lobotomy-resist and only happen when there's doctors.

This commit is contained in:
Putnam
2020-09-03 18:03:11 -07:00
parent f41c95a6a4
commit c48dd86e6e
+8 -2
View File
@@ -3,6 +3,13 @@
typepath = /datum/round_event/brain_trauma
weight = 25
/datum/round_event_control/brain_trauma/canSpawnEvent(var/players_amt, var/gamemode)
var/list/enemy_roles = list("Medical Doctor","Chief Medical Officer","Paramedic")
for (var/mob/M in GLOB.alive_mob_list)
if(M.stat != DEAD && M.mind?.assigned_role in enemy_roles)
return TRUE
return FALSE
/datum/round_event/brain_trauma
fakeable = FALSE
@@ -22,8 +29,7 @@
/datum/round_event/brain_trauma/proc/traumatize(mob/living/carbon/human/H)
var/resistance = pick(
65;TRAUMA_RESILIENCE_BASIC,
30;TRAUMA_RESILIENCE_SURGERY,
5;TRAUMA_RESILIENCE_LOBOTOMY)
35;TRAUMA_RESILIENCE_SURGERY)
var/trauma_type = pickweight(list(
BRAIN_TRAUMA_MILD = 60,