mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
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:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user