Call the proper proc

This commit is contained in:
ShizCalev
2020-02-24 01:28:54 -05:00
parent df81c5be4a
commit 0228bc2fbe
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -530,7 +530,7 @@ GLOBAL_VAR_INIT(rpg_loot_items, FALSE)
M.adjust_blurriness(15)
if(M.stat != DEAD)
to_chat(M, "<span class='danger'>Your eyes start to bleed profusely!</span>")
if(!(HAS_TRAIT(M, TRAIT_BLIND) || HAS_TRAIT(M, TRAIT_NEARSIGHT)))
if(!(M.is_blind() || HAS_TRAIT(M, TRAIT_NEARSIGHT)))
to_chat(M, "<span class='danger'>You become nearsighted!</span>")
M.become_nearsighted(EYE_DAMAGE)
if(prob(50))
@@ -86,7 +86,7 @@
else
user.visible_message("<span class='warning'>[user] directs [src] to [M]'s eyes.</span>", \
"<span class='danger'>You direct [src] to [M]'s eyes.</span>")
if(M.stat == DEAD || (HAS_TRAIT(M, TRAIT_BLIND)) || !M.flash_act(visual = 1)) //mob is dead or fully blind
if(M.stat == DEAD || (M.is_blind()) || !M.flash_act(visual = 1)) //mob is dead or fully blind
to_chat(user, "<span class='warning'>[M]'s pupils don't react to the light!</span>")
else if(M.dna && M.dna.check_mutation(XRAY)) //mob has X-ray vision
to_chat(user, "<span class='danger'>[M]'s pupils give an eerie glow!</span>")
+1 -1
View File
@@ -256,7 +256,7 @@ GENE SCANNER
message = "\n<span class='alert ml-2'>Subject does not have eyes.</span>"
if(istype(eyes))
message = ""
if(HAS_TRAIT(C, TRAIT_BLIND))
if(C.is_blind())
message += "\n<span class='alert ml-2'>Subject is blind.</span>"
if(HAS_TRAIT(C, TRAIT_NEARSIGHT))
message += "\n<span class='alert ml-2'>Subject is nearsighted.</span>"