mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Fully Implements R_EVENT for Event Managers
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
/obj/item/modular_computer/attack_ghost(var/mob/observer/ghost/user)
|
||||
if(enabled)
|
||||
ui_interact(user)
|
||||
else if(check_rights(R_ADMIN, 0, user))
|
||||
else if(check_rights(R_ADMIN|R_EVENT, 0, user))
|
||||
var/response = alert(user, "This computer is turned off. Would you like to turn it on?", "Admin Override", "Yes", "No")
|
||||
if(response == "Yes")
|
||||
turn_on(user)
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
return 1
|
||||
|
||||
// Admin override - allows operation of any computer as aghosted admin, as if you had any required access.
|
||||
if(istype(user, /mob/observer/dead) && check_rights(R_ADMIN, 0, user))
|
||||
if(istype(user, /mob/observer/dead) && check_rights(R_ADMIN|R_EVENT, 0, user))
|
||||
return 1
|
||||
|
||||
if(!istype(user))
|
||||
|
||||
Reference in New Issue
Block a user