Merge pull request #6188 from Mechoid/PuzzleFix

Fix Puzzledoors not being locked when no lock is found.
This commit is contained in:
Atermonera
2019-06-04 09:12:05 -08:00
committed by VirgoBot
parent 1ddecf112e
commit ddb0b7df2b
@@ -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)