mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 16:44:33 +01:00
Grille Repairing (#15570)
This commit is contained in:
@@ -166,7 +166,15 @@
|
||||
return 1 //skip the afterattack
|
||||
|
||||
add_fingerprint(user)
|
||||
if(istype(I, /obj/item/grab) && get_dist(src, user) < 2)
|
||||
if(istype(I, /obj/item/stack/rods) && user.a_intent == INTENT_HELP)
|
||||
for(var/obj/structure/grille/G in get_turf(src))
|
||||
if(!G.broken)
|
||||
continue
|
||||
to_chat(user, "<span class='notice'>You start rebuilding the broken grille.</span>")
|
||||
if(do_after(user, 4 SECONDS, FALSE, G))
|
||||
G.repair(user, I)
|
||||
|
||||
else if(istype(I, /obj/item/grab) && get_dist(src, user) < 2)
|
||||
var/obj/item/grab/G = I
|
||||
if(isliving(G.affecting))
|
||||
var/mob/living/M = G.affecting
|
||||
@@ -193,8 +201,8 @@
|
||||
M.Weaken(5)
|
||||
M.apply_damage(30)
|
||||
take_damage(75)
|
||||
return
|
||||
return ..()
|
||||
else
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/structure/window/crowbar_act(mob/user, obj/item/I)
|
||||
|
||||
Reference in New Issue
Block a user