mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
- When an admin uses 'adminwho', they will now also get information on whether the connected admins are observing (they're a ghost), playing (they're a living mob) or if they have not even entered the game (they're a new_player mob type)
- In addition when an admin uses 'adminwho' they will see if the admin in the list is AFK or not. You are deemed as AFK if you have been inactive for 300 seconds = 5 minutes. - A little code standardization for port gens. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3730 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -31,6 +31,14 @@
|
||||
for (var/mob/M in world)
|
||||
if(M && M.client && M.client.holder)
|
||||
if(usr.client.holder)
|
||||
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""]"
|
||||
var/afk = 0
|
||||
if( M.client.inactivity > 3000 ) //3000 deciseconds = 300 seconds = 5 minutes
|
||||
afk = 1
|
||||
if(isobserver(M))
|
||||
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""] - Observing [afk ? "(AFK)" : ""]"
|
||||
else if(istype(M,/mob/new_player))
|
||||
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""] - Has not entered [afk ? "(AFK)" : ""]"
|
||||
else if(istype(M,/mob/living))
|
||||
usr << "[M.key] is a [M.client.holder.rank][M.client.stealth ? " <i>(as [M.client.fakekey])</i>" : ""] - Playing [afk ? "(AFK)" : ""]"
|
||||
else if(!M.client.stealth)
|
||||
usr << "\t[M.client] is a [M.client.holder.rank]"
|
||||
|
||||
@@ -57,15 +57,14 @@ display round(lastgen) and plasmatank amount
|
||||
var/recent_fault = 0
|
||||
var/power_output = 1
|
||||
|
||||
proc
|
||||
HasFuel() //Placeholder for fuel check.
|
||||
return 1
|
||||
proc/HasFuel() //Placeholder for fuel check.
|
||||
return 1
|
||||
|
||||
UseFuel() //Placeholder for fuel use.
|
||||
return
|
||||
proc/UseFuel() //Placeholder for fuel use.
|
||||
return
|
||||
|
||||
handleInactive()
|
||||
return
|
||||
proc/handleInactive()
|
||||
return
|
||||
|
||||
process()
|
||||
if(active && HasFuel() && !crit_fail && anchored)
|
||||
|
||||
Reference in New Issue
Block a user