Fixes ghost interaction bug

This commit is contained in:
atermonera
2019-09-14 13:18:29 -08:00
parent abe8923043
commit a34c6c8d6f
2 changed files with 3 additions and 3 deletions

View File

@@ -214,8 +214,8 @@ Class Procs:
/obj/machinery/CanUseTopic(var/mob/user)
if(!interact_offline && (stat & (NOPOWER | BROKEN)))
return STATUS_CLOSE
// return ..() // This doesn't call the parent with the correct number of arguments (causing a runtime in /code/modules/nano/interaction/base.dm), nor easily provide any indication as to what the datum/topic_state should be, so this is clearly the wrong action.
return STATUS_INTERACTIVE
return ..()
/obj/machinery/CouldUseTopic(var/mob/user)
..()

View File

@@ -55,7 +55,7 @@
CouldNotUseTopic(usr)
return 1
/obj/CanUseTopic(var/mob/user, var/datum/topic_state/state)
/obj/CanUseTopic(var/mob/user, var/datum/topic_state/state = default_state)
if(user.CanUseObjTopic(src))
return ..()
to_chat(user, "<span class='danger'>\icon[src]Access Denied!</span>")