From 0410d0ac49ae1e9f0ea117049fb2c7d41b7bab1a Mon Sep 17 00:00:00 2001 From: Giacomand Date: Sun, 9 Feb 2014 06:11:51 +0000 Subject: [PATCH] Just some general polishing for the statue mobs. Statue mobs can't change their direction while seen. Lowered the range for flickering lights. Lowered the cooldown for blinding people, added user feedback when the spell is used. The blindness spell will affect people within objects. --- .../living/simple_animal/hostile/statue.dm | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/statue.dm b/code/modules/mob/living/simple_animal/hostile/statue.dm index d8074b8015f..1d6c6772a30 100644 --- a/code/modules/mob/living/simple_animal/hostile/statue.dm +++ b/code/modules/mob/living/simple_animal/hostile/statue.dm @@ -2,7 +2,7 @@ /mob/living/simple_animal/hostile/statue name = "statue" // matches the name of the statue with the flesh-to-stone spell - desc = "An incredibly lifelike marble carving. Its eye seems to follow you.." // same as an ordinary statue with the added "eye following you" description + desc = "An incredibly lifelike marble carving. Its eyes seems to follow you.." // same as an ordinary statue with the added "eye following you" description icon = 'icons/obj/statue.dmi' icon_state = "human_male" icon_living = "human_male" @@ -88,6 +88,10 @@ if(!can_be_seen()) ..() +/mob/living/simple_animal/hostile/statue/face_atom() + if(!can_be_seen()) + ..() + /mob/living/simple_animal/hostile/statue/UnarmedAttack() if(can_be_seen()) if(client) @@ -112,7 +116,7 @@ // This loop will, at most, loop twice. for(var/atom/check in check_list) - for(var/mob/living/M in viewers(world.view + 1, check)) + for(var/mob/living/M in viewers(world.view + 1, check) - src) if(M.client && CanAttack(M)) if(!M.blinded && !(sdisabilities & BLIND)) return M @@ -155,7 +159,7 @@ charge_max = 300 clothes_req = 0 - range = 18 + range = 14 /obj/effect/proc_holder/spell/aoe_turf/flicker_lights/cast(list/targets) for(var/turf/T in targets) @@ -168,15 +172,16 @@ name = "Blindness" desc = "Your prey will be momentarily blind for you to advance on them." - charge_max = 800 + message = "You glare your eyes." + charge_max = 600 clothes_req = 0 range = 8 /obj/effect/proc_holder/spell/aoe_turf/blindness/cast(list/targets) - for(var/turf/T in targets) - for(var/mob/living/L in T) - if(L != loc) - L.eye_blind = max(L.eye_blind, 3) + for(var/mob/living/L in living_mob_list) + var/turf/T = get_turf(L.loc) + if(T && T in targets) + L.eye_blind = max(L.eye_blind, 4) return //Toggle Night Vision