mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-05 07:02:36 +00:00
* Handlers converted, now to fix 3532 compile errors * 3532 compile fixes later, got runtimes on startup * Well the server loads now atleast * Take 2 * Oops
15 lines
473 B
Plaintext
15 lines
473 B
Plaintext
/*
|
|
This checks that the user is a ghost or alternatively an admin. Used for the mob spawner.
|
|
We don't want any living people somehow getting the menu open and reincarnating while alive
|
|
*/
|
|
|
|
GLOBAL_DATUM_INIT(ghost_state, /datum/topic_state/ghost_state, new())
|
|
|
|
/datum/topic_state/ghost_state/can_use_topic(var/src_object, var/mob/user)
|
|
if(user.stat == DEAD)
|
|
return STATUS_INTERACTIVE
|
|
if(check_rights(R_ADMIN, 0, src))
|
|
return STATUS_INTERACTIVE
|
|
return STATUS_CLOSE
|
|
|