mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-21 13:13:29 +01:00
[MIRROR] Fix circuit complexities, and minor pathfinder circuit fix (#11634)
Co-authored-by: Aura Dusklight <46622484+NovaDusklight@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
60aab06429
commit
1f538900aa
@@ -475,10 +475,18 @@
|
||||
// Bump functionality, for pathfinding circuits. (Droid circuit assembly types)
|
||||
/obj/item/electronic_assembly/Bump(atom/AM)
|
||||
..()
|
||||
if(istype(AM, /obj/machinery/door) && can_move())
|
||||
var/obj/machinery/door/D = AM
|
||||
if(D.check_access(src))
|
||||
D.open()
|
||||
if(can_move())
|
||||
// Check if it's an airlock or windoor. (Prevents opening blast doors and shutters)
|
||||
if(istype(AM, /obj/machinery/door/airlock) || istype(AM, /obj/machinery/door/window))
|
||||
var/obj/machinery/door/D = AM
|
||||
// Only open doors that we have access to
|
||||
if(D.check_access(src))
|
||||
D.open()
|
||||
|
||||
/obj/item/electronic_assembly/check_access(obj/item/I)
|
||||
if(access_card)
|
||||
return access_card.check_access(I)
|
||||
return ..() // Fall back to default behavior if no access_card
|
||||
|
||||
// Returns TRUE if I is something that could/should have a valid interaction. Used to tell circuitclothes to hit the circuit with something instead of the clothes
|
||||
/obj/item/electronic_assembly/proc/is_valid_tool(var/obj/item/I)
|
||||
|
||||
Reference in New Issue
Block a user