Makes girders non-bulletproof

Also, minor refactoring
This commit is contained in:
Krausus
2016-08-21 11:12:48 -04:00
parent ce58dc1366
commit ae0f60c06b
+4 -8
View File
@@ -25,7 +25,8 @@
/obj/structure/girder/proc/take_damage(var/amount)
health -= amount
if(health < 0)
if(health <= 0)
new /obj/item/stack/sheet/metal(get_turf(src))
qdel(src)
/obj/structure/girder/attackby(obj/item/W as obj, mob/user as mob, params)
@@ -188,15 +189,10 @@
qdel(src)
/obj/structure/girder/bullet_act(var/obj/item/projectile/Proj)
if(istype(Proj, /obj/item/projectile/beam))
health -= Proj.damage
..()
if(health <= 0)
new /obj/item/stack/sheet/metal(get_turf(src))
qdel(src)
if(istype(Proj ,/obj/item/projectile/beam/pulse))
src.ex_act(2)
else
take_damage(Proj.damage)
..()
return 0