TG: More work on NTSL and world/Topic()

Includes a plethora of new NTSL functions, courtesy of Donkieyo (thread:
http://nanotrasen.com/phpBB3/viewtopic.php?f=16&t=8153)

Bugfix for a weird runtime generated when an AI tries to interact with telecomms
machinery directly.
Revision: r3347
Author: 	 vageyenaman
This commit is contained in:
Ren Erthilo
2012-04-30 00:32:57 +01:00
parent 86e6fa7321
commit 0e7f2e1b4f
+9 -1
View File
@@ -12,8 +12,11 @@
s["host"] = host ? host : null
s["players"] = list()
s["admins"] = 0
var/admins = 0
var/n = 0
for(var/client/C)
n++
if(C.holder && C.holder.level >= 0) //not retired admin
if(!C.stealth) //stealthmins dont count as admins
@@ -25,4 +28,9 @@
s["player[n]"] = "[C.key]"
s["players"] = n
s["end"] = "#end"
return list2params(s)
// 7 + s["players"] + 1 = index of s["revinfo"]
s["revision"] = revdata.revision
s["admins"] = admins
return list2params(s)