mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-29 06:57:42 +01:00
Fixes AI being able to control not working APCs (#22523)
* Makes destructive analyzer stay in the same menu after deconstruction * adds conditional check before toggling APC * Revert * Update and rename ai_onclick.dm to put the warning message in the right place * Rename file back to ai_onclick.dm * logic breakup Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> --------- Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
This commit is contained in:
@@ -177,6 +177,12 @@
|
||||
// APC
|
||||
|
||||
/obj/machinery/power/apc/AICtrlClick(mob/living/user) // turns off/on APCs.
|
||||
if(stat & BROKEN)
|
||||
return
|
||||
|
||||
if(aidisabled)
|
||||
to_chat(user, "<span class='warning'>Unable to interface: Connection refused.</span>")
|
||||
return
|
||||
toggle_breaker(user)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user