Adds a coverage check to xenoflora splattering, adjusts brainloss across

the board.
This commit is contained in:
Zuhayr
2016-01-31 11:46:56 +10:30
parent b9233680d2
commit 408cb5d8d8
20 changed files with 42 additions and 67 deletions
+3 -7
View File
@@ -853,13 +853,9 @@
if ((!in_range(src, user) || !istype(src.loc, /turf) || hacker)) // AI-hacked APCs cannot be controlled by other AIs, unlinked cyborgs or humans.
return 0
var/mob/living/carbon/human/H = user
if (istype(H))
if(H.getBrainLoss() >= 60)
H.visible_message("<span class='danger'>[H] stares cluelessly at [src] and drools.</span>")
return 0
else if(prob(H.getBrainLoss()))
user << "<span class='danger'>You momentarily forget how to use [src].</span>"
return 0
if (istype(H) && prob(H.getBrainLoss()))
user << "<span class='danger'>You momentarily forget how to use [src].</span>"
return 0
return 1
/obj/machinery/power/apc/Topic(href, href_list)