mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-10 17:32:59 +00:00
Fix Puzzledoors not being locked when no lock is found.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user