Makes mechanical eyes protect you

This commit is contained in:
Markolie
2015-08-29 18:38:26 +02:00
parent f10a4de9c6
commit 134d2116c6
6 changed files with 40 additions and 22 deletions
+10 -3
View File
@@ -175,9 +175,16 @@
env.merge(removed)
for(var/mob/living/carbon/human/l in view(src, min(7, round(power ** 0.25)))) // If they can see it without mesons on. Bad on them.
if(!istype(l.glasses, /obj/item/clothing/glasses/meson))
l.hallucination = max(0, min(200, l.hallucination + power * config_hallucination_power * sqrt( 1 / max(1, get_dist(l, src)) ) ) )
for(var/mob/living/carbon/human/l in view(src, min(7, round(sqrt(power/6)))))
// If they can see it without mesons on. Bad on them.
if(l.glasses && istype(l.glasses, /obj/item/clothing/glasses/meson))
continue
// Where we're going, we don't need eyes.
// Prosthetic eyes will also protect against this business.
var/obj/item/organ/eyes = l.internal_organs_by_name["eyes"]
if(!istype(eyes) || (eyes.status & ORGAN_ROBOT))
continue
l.hallucination = max(0, min(200, l.hallucination + power * config_hallucination_power * sqrt( 1 / max(1,get_dist(l, src)) ) ) )
for(var/mob/living/l in range(src, round((power / 100) ** 0.25)))
var/rads = (power / 10) * sqrt( 1 / max(get_dist(l, src),1) )
+4 -1
View File
@@ -916,7 +916,10 @@ var/list/compatible_mobs = list(/mob/living/carbon/human)
/datum/disease2/effect/eyewater
name = "Watery Eyes"
stage = 1
activate(var/mob/living/carbon/mob,var/multiplier)
activate(var/mob/living/carbon/human/mob,var/multiplier)
var/obj/item/organ/eyes/E = mob.internal_organs_by_name["eyes"]
if(!istype(E) || (E.status & ORGAN_ROBOT)) // No eyes or robotic eyes? No problem!
return
mob << "<span class='warning'>Your eyes sting and water!</span>"
/datum/disease2/effect/wheeze