mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fixes a minor blob issue, adds mecha attack message
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user