Moves the C4 overlay to the float layer for mobs. (#45754)

* Fixes C4 stuff

* Only does it on mobs.
This commit is contained in:
nemvar
2019-08-08 01:02:57 -07:00
committed by Rob Bailey
parent 4ecdea0289
commit b9fa7963a7
+3 -1
View File
@@ -97,8 +97,10 @@
I.throw_speed = max(1, (I.throw_speed - 3))
I.throw_range = max(1, (I.throw_range - 3))
I.embedding = I.embedding.setRating(embed_chance = 0)
else if(istype(AM, /mob/living))
plastic_overlay.layer = FLOAT_LAYER
target.add_overlay(plastic_overlay, TRUE)
target.add_overlay(plastic_overlay)
to_chat(user, "<span class='notice'>You plant the bomb. Timer counting down from [det_time].</span>")
addtimer(CALLBACK(src, .proc/prime), det_time*10)