Merge pull request #36288 from Cyberboss/BansKevinzFinally

You can no longer SDQL select certain datums
This commit is contained in:
vuonojenmustaturska
2018-03-09 18:45:24 +02:00
committed by CitadelStationBot
parent ad0be11cbc
commit bf63e9ad3f
3 changed files with 13 additions and 7 deletions

View File

@@ -39,6 +39,9 @@ GLOBAL_PROTECT(admin_ranks)
return QDEL_HINT_LETMELIVE
. = ..()
/datum/admin_rank/can_vv_get(var_name)
return FALSE
/datum/admin_rank/vv_edit_var(var_name, var_value)
return FALSE

View File

@@ -142,6 +142,9 @@ GLOBAL_PROTECT(href_token)
return 1 //we have all the rights they have and more
return 0
/datum/admins/can_vv_get(var_name, var_value)
return FALSE //nice try trialmin
/datum/admins/vv_edit_var(var_name, var_value)
return FALSE //nice try trialmin

View File

@@ -235,42 +235,42 @@
if(ispath(type, /mob))
for(var/mob/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else if(ispath(type, /turf))
for(var/turf/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else if(ispath(type, /obj))
for(var/obj/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else if(ispath(type, /area))
for(var/area/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else if(ispath(type, /atom))
for(var/atom/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else if(ispath(type, /datum))
if(location == world) //snowflake for byond shortcut
for(var/datum/d) //stupid byond trick to have it not return atoms to make this less laggy
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK
else
for(var/datum/d in location)
if(typecache[d.type])
if(typecache[d.type] && d.can_vv_get())
out += d
CHECK_TICK