From 63d83a6dd6134df92c74d178df949e075fe2d0f1 Mon Sep 17 00:00:00 2001 From: Joan Lung Date: Thu, 8 Sep 2016 09:59:45 -0400 Subject: [PATCH] repair --- code/game/gamemodes/cult/cult_structures.dm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/code/game/gamemodes/cult/cult_structures.dm b/code/game/gamemodes/cult/cult_structures.dm index 56cf0b0fe88..405b6512001 100644 --- a/code/game/gamemodes/cult/cult_structures.dm +++ b/code/game/gamemodes/cult/cult_structures.dm @@ -29,6 +29,17 @@ if(can_see_cult && cooldowntime > world.time) user << "The magic in [src] is weak, it will be ready to use again in [getETA()]." +/obj/structure/destructible/cult/attack_animal(mob/living/simple_animal/M) + if(istype(M, /mob/living/simple_animal/hostile/construct/builder)) + if(health < max_health) + health = min(max_health, health + 5) + Beam(M, icon_state="sendbeam", icon='icons/effects/effects.dmi', time=4) + M.visible_message("[M] repairs \the [src].", \ + "You repair [src], leaving it at [health]/[max_health] stability.") + else + M << "You cannot repair [src], as it is undamaged!" + else + ..() /obj/structure/destructible/cult/attackby(obj/I, mob/user, params) if(istype(I, /obj/item/weapon/tome) && iscultist(user))