Merge pull request #10798 from TDSSS/second-mob-spawner-fix

Fixed mob spawner menu, this time for real
This commit is contained in:
variableundefined
2019-02-02 21:03:23 +08:00
committed by GitHub
3 changed files with 17 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
/*
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
*/
/var/global/datum/topic_state/ghost_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