mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 11:07:12 +01:00
Merge pull request #10798 from TDSSS/second-mob-spawner-fix
Fixed mob spawner menu, this time for real
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user