mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-20 11:35:19 +01:00
Fixes chromatic slime laser reflection and adjusts a span class
This commit is contained in:
@@ -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
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user