Fix Puzzledoors not being locked when no lock is found.

This commit is contained in:
Mechoid
2019-05-31 20:37:04 -07:00
parent 305ffcb7a7
commit e0a6d779b5

View File

@@ -18,13 +18,17 @@
var/checkrange_mult = 1
/obj/machinery/door/blast/puzzle/proc/check_locks()
if(!locks || locks.len <= 0) // Puzzle doors with no locks will only listen to boring buttons.
return 0
for(var/obj/structure/prop/lock/L in locks)
if(!L.enabled)
return 0
return 1
/obj/machinery/door/blast/puzzle/bullet_act(var/obj/item/projectile/Proj)
visible_message("<span class='cult'>\The [src] is completely unaffected by \the [Proj].</span>")
if(!istype(Proj, /obj/item/projectile/test))
visible_message("<span class='cult'>\The [src] is completely unaffected by \the [Proj].</span>")
qdel(Proj) //No piercing. No.
/obj/machinery/door/blast/puzzle/ex_act(severity)