This commit is contained in:
DeityLink
2021-06-21 20:29:46 +02:00
committed by GitHub
parent dba1ca7b0e
commit 3df6ca22e6
8 changed files with 157 additions and 4 deletions

View File

@@ -473,6 +473,12 @@ var/global/list/obj/machinery/light/alllights = list()
M.do_attack_animation(src, M)
for(var/mob/O in viewers(src))
O.show_message("<span class='attack'>[M.name] smashed the light!</span>", 1, "You hear a tinkle of breaking glass", 2)
if (isspider(M))
var/datum/faction/spider_infestation/infestation = find_active_faction_by_type(/datum/faction/spider_infestation)
if (infestation)
var/datum/objective/spider/S = locate() in infestation.objective_holder.objectives
if (S)
S.broken_lights++
broken()
return
// attack with hand - remove tube/bulb