Renames IsAGhost to IsAdminGhost.

Reworks checks to not need stat to be 0
Fixes the majority of the Nanoui bugs.
This commit is contained in:
Shadowlight213
2015-12-06 20:21:43 -08:00
parent 828f880432
commit 74c27189b9
24 changed files with 45 additions and 45 deletions

View File

@@ -55,7 +55,7 @@
if(stat & (NOPOWER|BROKEN))
return
if ( (get_dist(src, user) > 1 ))
if (!istype(user, /mob/living/silicon))
if (!(istype(user, /mob/living/silicon) || IsAdminGhost(user)))
user << text("Too far away.")
user.unset_machine()
user << browse(null, "window=ai_slipper")
@@ -71,7 +71,7 @@
var/area/area = loc
var/t = "<TT><B>AI Liquid Dispenser</B> ([format_text(area.name)])<HR>"
if(src.locked && (!istype(user, /mob/living/silicon)))
if(src.locked && (!(istype(user, /mob/living/silicon) || IsAdminGhost(user))))
t += "<I>(Swipe ID card to unlock control panel.)</I><BR>"
else
t += text("Dispenser [] - <A href='?src=\ref[];toggleOn=1'>[]?</a><br>\n", src.disabled?"deactivated":"activated", src, src.disabled?"Enable":"Disable")
@@ -85,7 +85,7 @@
if(..())
return
if (src.locked)
if (!istype(usr, /mob/living/silicon))
if (!(istype(usr, /mob/living/silicon)|| IsAdminGhost(usr)))
usr << "Control panel is locked!"
return
if (href_list["toggleOn"])