mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Converts the check to a macro, names the macro better
This commit is contained in:
@@ -93,6 +93,8 @@
|
||||
|
||||
#define isobserver(A) istype(A, /mob/dead/observer)
|
||||
|
||||
#define isjustobserver(A) (isobserver(A) && !isAdminGhost(A))
|
||||
|
||||
#define isnewplayer(A) istype(A, /mob/new_player)
|
||||
|
||||
#define isovermind(A) istype(A, /mob/camera/blob)
|
||||
|
||||
@@ -170,7 +170,7 @@ var/global/ingredientLimit = 10
|
||||
set category = "Object"
|
||||
set src in oview(1)
|
||||
|
||||
if(ghostCheck(usr))
|
||||
if(isjustobserver(usr))
|
||||
return
|
||||
|
||||
if(cooks_in_reagents)
|
||||
|
||||
@@ -104,11 +104,6 @@ mob/proc/remove_internal_organ()
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/ghostCheck(A) //Ghostbusters. Returns 1 if it's a ghost, returns 0 if they're an adminghost or otherwise
|
||||
if(isobserver(A) && !isAdminGhost(A))
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/proc/canGhostRead(var/mob/A, var/obj/target, var/flags=PERMIT_ALL)
|
||||
if(isAdminGhost(A))
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user