Split admin interaction into regular and advanced, make more devices ghost-interactable

This commit is contained in:
Markolie
2017-02-09 19:30:36 +01:00
parent 44a55cd88e
commit 2afd77a54a
11 changed files with 69 additions and 55 deletions
+14 -2
View File
@@ -645,10 +645,22 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
client.images -= ghostimage //remove ourself
/mob/proc/can_admin_interact()
return 0
return FALSE
/mob/proc/can_advanced_admin_interact()
return FALSE
/mob/dead/observer/can_admin_interact()
return client && client.observer_interact && check_rights(R_ADMIN, 0, src)
return check_rights(R_ADMIN, 0, src)
/mob/dead/observer/can_advanced_admin_interact()
if(!can_admin_interact())
return FALSE
if(client && client.advanced_admin_interaction)
return TRUE
return FALSE
//this is a mob verb instead of atom for performance reasons
//see /mob/verb/examinate() in mob.dm for more info