Merge pull request #6263 from Nalarac/patch-6

Nerfs Simple Doors
This commit is contained in:
Atermonera
2019-07-03 19:07:38 -08:00
committed by GitHub
+5 -1
View File
@@ -131,7 +131,7 @@
user << "You finished digging."
Dismantle()
else if(istype(W,/obj/item/weapon)) //not sure, can't not just weapons get passed to this proc?
hardness -= W.force/100
hardness -= W.force/10
user << "You hit the [name] with your [W.name]!"
CheckHardness()
else if(istype(W,/obj/item/weapon/weldingtool))
@@ -142,6 +142,10 @@
attack_hand(user)
return
/obj/structure/simple_door/bullet_act(var/obj/item/projectile/Proj)
hardness -= Proj.force/10
CheckHardness()
/obj/structure/simple_door/proc/CheckHardness()
if(hardness <= 0)
Dismantle(1)