mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-22 04:24:20 +01:00
Makes mechanical eyes protect you
This commit is contained in:
@@ -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) )
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user