and finally, the modules folder. Now I can publish and take a break

This commit is contained in:
deathride58
2018-07-02 01:19:37 -04:00
parent 91805b8789
commit b1688405d9
380 changed files with 2204 additions and 1588 deletions
+12 -13
View File
@@ -208,7 +208,18 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic
for(var/I in targets)
//Grab us a client if possible
var/client/C = grab_client(I)
var/client/C
if (ismob(I))
var/mob/M = I
if(M.client)
C = M.client
else if(istype(I, /client))
C = I
else if(istype(I, /datum/mind))
var/datum/mind/M = I
if(M.current && M.current.client)
C = M.current.client
if (!C)
continue
@@ -226,15 +237,3 @@ GLOBAL_DATUM_INIT(iconCache, /savefile, new("data/iconCache.sav")) //Cache of ic
// url_encode it TWICE, this way any UTF-8 characters are able to be decoded by the Javascript.
C << output(url_encode(url_encode(message)), "browseroutput:output")
/proc/grab_client(target)
if(istype(target, /client))
return target
else if(ismob(target))
var/mob/M = target
if(M.client)
return M.client
else if(istype(target, /datum/mind))
var/datum/mind/M = target
if(M.current && M.current.client)
return M.current.client