mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Gives better feedback to the AI when opening doors from chat. Fix runtime
This commit is contained in:
@@ -846,12 +846,14 @@ About the new airlock wires panel:
|
||||
/obj/machinery/door/airlock/proc/open_close(mob/user)
|
||||
if(welded)
|
||||
to_chat(user, "<span class='warning'>The airlock has been welded shut!</span>")
|
||||
return FALSE
|
||||
else if(locked)
|
||||
to_chat(user, "<span class='warning'>The door bolts are down!</span>")
|
||||
return FALSE
|
||||
else if(density)
|
||||
open()
|
||||
return open()
|
||||
else
|
||||
close()
|
||||
return close()
|
||||
|
||||
/obj/machinery/door/airlock/proc/toggle_light(mob/user)
|
||||
if(wires.is_cut(WIRE_BOLT_LIGHT))
|
||||
|
||||
@@ -1332,8 +1332,10 @@ GLOBAL_LIST_INIT(ai_verbs_default, list(
|
||||
if(istype(A))
|
||||
switch(alert(src, "Do you want to open \the [A] for [target]?", "Doorknob_v2a.exe", "Yes", "No"))
|
||||
if("Yes")
|
||||
A.AIShiftClick()
|
||||
to_chat(src, "<span class='notice'>You open \the [A] for [target].</span>")
|
||||
if(!A.density)
|
||||
to_chat(src, "<span class='notice'>[A] was already opened.</span>")
|
||||
else if(A.open_close(src))
|
||||
to_chat(src, "<span class='notice'>You open \the [A] for [target].</span>")
|
||||
else
|
||||
to_chat(src, "<span class='warning'>You deny the request.</span>")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user