VS: NIF small refactor

This commit is contained in:
Arokha Sieyes
2018-03-15 23:47:15 -04:00
parent 020c2a06f1
commit 3909b285d1
2 changed files with 32 additions and 10 deletions
+5 -1
View File
@@ -43,7 +43,6 @@
..()
nif = newloc
nifsoft = soft
spawn(10) register_device(nif.human) //Need to outwait the other spawn in communicators, sigh.
qdel_null(camera) //Not supported on internal one.
Destroy()
@@ -53,6 +52,11 @@
nifsoft = null
return ..()
/obj/item/device/communicator/commlink/register_device(var/new_name)
owner = new_name
name = "[owner]'s [initial(name)]"
nif.save_data["commlink_name"] = owner
//So that only the owner's chat is relayed to others.
/obj/item/device/communicator/commlink/hear_talk(mob/living/M, text, verb, datum/language/speaking)
if(M != nif.human) return