Upgrades SDQL2 and refactors it to a datum

This commit is contained in:
kevinz000
2019-03-27 11:50:49 -04:00
committed by Novacat
parent bac2ebb883
commit dfbd0bd72b
35 changed files with 2487 additions and 1569 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
return
if(!pai_key)
var/client/C = input("Select client") as null|anything in clients
var/client/C = input("Select client") as null|anything in GLOB.clients
if(!C) return
pai_key = C.key
+13 -1
View File
@@ -1,4 +1,4 @@
/mob/Destroy()//This makes sure that mobs with clients/keys are not just deleted from the game.
/mob/Destroy()//This makes sure that mobs withGLOB.clients/keys are not just deleted from the game.
mob_list -= src
dead_mob_list -= src
living_mob_list -= src
@@ -695,6 +695,10 @@
stat("World Time:", world.time)
stat("Real time of day:", REALTIMEOFDAY)
stat(null)
if(GLOB)
GLOB.stat_entry()
else
stat("Globals:", "ERROR")
if(Master)
Master.stat_entry()
else
@@ -710,6 +714,14 @@
if(statpanel("Tickets"))
GLOB.ahelp_tickets.stat_entry()
if(length(GLOB.sdql2_queries))
if(statpanel("SDQL2"))
stat("Access Global SDQL2 List", GLOB.sdql2_vv_statobj)
for(var/i in GLOB.sdql2_queries)
var/datum/SDQL2_query/Q = i
Q.generate_stat()
if(listed_turf && client)
if(!TurfAdjacent(listed_turf))