Fixes chromatic slime laser reflection and adjusts a span class

This commit is contained in:
Yoshax
2016-05-29 01:33:48 +01:00
parent df0135ac2b
commit 5d3dbb8b6f
+4 -3
View File
@@ -137,10 +137,10 @@ Procs for targeting
/mob/living/simple_animal/xeno/proc/BuildReagentLists()
return
/mob/living/simple_animal/xeno/proc/bulet_act(var/obj/item/projectile/P)
/mob/living/simple_animal/xeno/bullet_act(var/obj/item/projectile/P)
//Shamelessly stolen from ablative armor.
if((traitdat.traits[TRAIT_XENO_CHROMATIC]) && istype(P, /obj/item/projectile/beam))
visible_message("<span class='danger')\The beam reflects off of the [src]!</span>")
visible_message("<span class='danger'>)\The beam reflects off of the [src]!</span>")
// Find a turf near or on the original location to bounce to
var/new_x = P.starting.x + pick(0, -1, 1, -2, 2)
var/new_y = P.starting.y + pick(0, -1, 1, -2, 2)
@@ -149,7 +149,8 @@ Procs for targeting
// redirect the projectile
P.redirect(new_x, new_y, curloc, src)
return
return -1
else
..()