initialize

This commit is contained in:
YPO
2017-09-20 16:59:59 -06:00
parent 212b673ae0
commit 3930d1886f
@@ -9,13 +9,13 @@
var/times_spoken_to = 0
var/list/shenanigans = list()
/obj/structure/speaking_tile/New()
/obj/structure/speaking_tile/Initialize()
. = ..()
var/json_file = file("data/npc_saves/Poly.json")
if(!fexists(json_file))
return
var/list/json = json_decode(file2text(json_file))
shenanigans = json["phrases"]
..()
/obj/structure/speaking_tile/interact(mob/user)
if(!isliving(user) || speaking)