Orbit menu now shows assigned roles to antaghud users (#24578)

* lol

* FUCK YEAH

* the rest of the bundle

* Update code/modules/asset_cache/assets/asset_orbit_icons.dm

Co-authored-by: warriorstar-orion <orion@snowfrost.garden>

* little tgui thang

---------

Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
This commit is contained in:
Contrabang
2024-04-07 09:45:30 +00:00
committed by GitHub
co-authored by warriorstar-orion paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com> S34N
parent 34ba019704
commit a3c1fecf02
7 changed files with 136 additions and 54 deletions
+33
View File
@@ -1751,6 +1751,39 @@
to_chat(current, "<span class='warning'><b>You seem to have forgotten the events of the past 10 minutes or so, and your head aches a bit as if someone beat it savagely with a stick.</b></span>")
to_chat(current, "<span class='warning'><b>This means you don't remember who you were working for or what you were doing.</b></span>")
/datum/mind/proc/has_normal_assigned_role()
if(!assigned_role)
return FALSE
if(assigned_role == special_role) // nukie, ninjas, wizards, whatever
return FALSE
if(assigned_role == "Assistant") // because the default assigned role is assistant :P
for(var/list/L in list(GLOB.data_core.general))
for(var/datum/data/record/R in L)
if(R.fields["name"] == name)
return TRUE
return FALSE
return TRUE
/datum/mind/proc/get_assigned_role_asset() //Used in asset generation for Orbiting
var/job_icons = GLOB.joblist
var/centcom = get_all_centcom_jobs() + SPECIAL_ROLE_ERT + SPECIAL_ROLE_DEATHSQUAD
var/solgov = get_all_solgov_jobs()
var/soviet = get_all_soviet_jobs()
if(assigned_role in centcom) //Return with the NT logo if it is a Centcom job
return "centcom"
if(assigned_role in solgov) //Return with the SolGov logo if it is a SolGov job
return "solgov"
if(assigned_role in soviet) //Return with the U.S.S.P logo if it is a Soviet job
return "soviet"
if(assigned_role in job_icons) //Check if the job has a hud icon
return assigned_role
return "unknown"
//Initialisation procs
/mob/proc/mind_initialize()
if(mind)