mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Mentor permissions fixes and such.
Created a helper proc /proc/is_mentor(client) use this when determining if someone is a mentor and they aren't the usr of the proc (rights_check uses usr) Mentors will no longer hear ghosts while playing Mentors will no longer see orange text around names in check_player_age panel if they have special_roles Mentors will no longer be able to tell players with special roles through the use of player_panel Mentors will no longer be able to aghost, use antagHUD, then return to their bodies.
This commit is contained in:
@@ -493,7 +493,7 @@ Turf and target are seperate in case you want to teleport some distance from a t
|
||||
return -M
|
||||
|
||||
|
||||
/proc/key_name(var/whom, var/include_link = null, var/include_name = 1)
|
||||
/proc/key_name(var/whom, var/include_link = null, var/include_name = 1, var/highlight_special_characters = 1)
|
||||
var/mob/M
|
||||
var/client/C
|
||||
var/key
|
||||
@@ -538,7 +538,8 @@ Turf and target are seperate in case you want to teleport some distance from a t
|
||||
else if(M.name)
|
||||
name = M.name
|
||||
|
||||
if(include_link && is_special_character(M))
|
||||
|
||||
if(include_link && is_special_character(M) && highlight_special_characters)
|
||||
. += "/(<font color='#FFA500'>[name]</font>)" //Orange
|
||||
else
|
||||
. += "/([name])"
|
||||
|
||||
Reference in New Issue
Block a user