Fixes a minor blob issue, adds mecha attack message

This commit is contained in:
Kelenius
2015-10-07 10:49:24 +03:00
parent 83adba88d4
commit 82928d3b74

View File

@@ -18,7 +18,6 @@
/obj/effect/blob/New(loc) /obj/effect/blob/New(loc)
health = maxHealth health = maxHealth
set_dir(pick(1,2,4,8))
update_icon() update_icon()
return ..(loc) return ..(loc)
@@ -74,10 +73,10 @@
if(GR) if(GR)
qdel(GR) qdel(GR)
return return
var/obj/machinery/door/D = locate() in T for(var/obj/machinery/door/D in T) // There can be several - and some of them can be open, locate() is not suitable
if(D && D.density) if(D.density)
D.ex_act(2) D.ex_act(2)
return return
var/obj/structure/foamedmetal/F = locate() in T var/obj/structure/foamedmetal/F = locate() in T
if(F) if(F)
qdel(F) qdel(F)
@@ -97,6 +96,7 @@
return return
var/obj/mecha/M = locate() in T var/obj/mecha/M = locate() in T
if(M) if(M)
M.visible_message("<span class='danger'>The blob attacks \the [M]!</span>")
M.take_damage(40) M.take_damage(40)
return return