From c5b41ce045125157889bd29f9949a515d4fe374b Mon Sep 17 00:00:00 2001 From: Joan Lung Date: Mon, 15 Aug 2016 18:56:12 -0400 Subject: [PATCH] certainly creative, if inefficient. --- code/game/objects/structures/girders.dm | 8 ++++++++ code/modules/mob/living/simple_animal/hostile/hostile.dm | 1 + .../living/simple_animal/hostile/megafauna/megafauna.dm | 4 +++- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/code/game/objects/structures/girders.dm b/code/game/objects/structures/girders.dm index 5e87acfbb70..4351847af1c 100644 --- a/code/game/objects/structures/girders.dm +++ b/code/game/objects/structures/girders.dm @@ -264,6 +264,14 @@ var/atom/movable/mover = caller . = . || mover.checkpass(PASSGRILLE) +/obj/structure/girder/attack_animal(mob/living/simple_animal/M) + if(M.environment_smash) + if(state != GIRDER_DISPLACED) + var/obj/structure/girder/displaced/D = new (loc) + transfer_fingerprints_to(D) + qdel(src) + + /obj/structure/girder/blob_act(obj/effect/blob/B) if(prob(40)) qdel(src) diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index 859c17f4964..1d4657681d8 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -20,6 +20,7 @@ /obj/structure/closet, /obj/structure/table, /obj/structure/grille, + /obj/structure/girder, /obj/structure/rack, /obj/structure/barricade) //turned into a typecache in New() diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm index 20f2980b576..b84475a5bcf 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/megafauna.dm @@ -23,9 +23,11 @@ /obj/structure/closet, /obj/structure/table, /obj/structure/grille, + /obj/structure/girder, /obj/structure/rack, /obj/structure/barricade, - /obj/machinery/field) + /obj/machinery/field, + /obj/machinery/power/emitter) var/medal_type = MEDAL_PREFIX var/score_type = BOSS_SCORE var/elimination = 0