From 8fa821f2677547d1e8a601f5518b50cb85707619 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 26 Sep 2014 20:14:22 +0200 Subject: [PATCH] Added $language variable Does not support changing output language yet though --- code/modules/scripting/Implementations/Telecomms.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/scripting/Implementations/Telecomms.dm b/code/modules/scripting/Implementations/Telecomms.dm index bfe92013480..6c02ab4997a 100644 --- a/code/modules/scripting/Implementations/Telecomms.dm +++ b/code/modules/scripting/Implementations/Telecomms.dm @@ -105,6 +105,13 @@ interpreter.SetVar("SLIME" , SLIME) interpreter.SetVar("DRONE" , DRONE) + var/curlang = HUMAN + if(istype(signal.data["mob"], /atom/movable)) + var/atom/movable/M = signal.data["mob"] + curlang = M.languages + + interpreter.SetVar("$language", curlang) + /* Telecomms procs