mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Makes girders non-bulletproof
Also, minor refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user