Converts the check to a macro, names the macro better

This commit is contained in:
MadmanMartian
2017-09-05 14:12:19 +01:00
parent a2dbd7b07b
commit 42c828608b
3 changed files with 3 additions and 6 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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