/mob/living/proc/show_psi_assay(var/mob/viewer) if(!viewer) viewer = usr var/use_He_is = "You are" var/use_He_has = "You have" if(istype(machine) || viewer != src) use_He_is = "[get_pronoun("He")] [get_pronoun("is")]" use_He_has = "[get_pronoun("He")] [get_pronoun("has")]" var/list/dat = list() dat += "

Summary

" dat += "
" if(psi) // Hi Warhammer 40k rating system, how are you? // I hope you get along with the Galactic Milieu metapsychics. var/use_rating var/effective_rating = psi.rating if(effective_rating > 1 && psi.suppressed) effective_rating = max(0, psi.rating-2) var/rating_descriptor if(viewer != usr && thralls.is_antagonist(mind) && ishuman(viewer)) var/mob/living/H = viewer if(H.psi && H.psi.get_rank(PSI_REDACTION) >= PSI_RANK_GRANDMASTER) dat += "Their mind has been cored like an apple, and enslaved by another operant psychic." if(!use_rating) switch(effective_rating) if(1) use_rating = "[effective_rating]-Epsilon" rating_descriptor = "This indicates the presence of minor latent psi potential with little or no operant capabilities." if(2) use_rating = "[effective_rating]-Delta" rating_descriptor = "This indicates the presence of minor psi capabilities of the Operant rank or higher." if(3) use_rating = "[effective_rating]-Gamma" rating_descriptor = "This indicates the presence of psi capabilities of the Master rank or higher." if(4) use_rating = "[effective_rating]-Beta" rating_descriptor = "This indicates the presence of significant psi capabilities of the Grandmaster rank or higher." if(5) use_rating = "[effective_rating]-Alpha" rating_descriptor = "This indicates the presence of major psi capabilities of the Paramount Grandmaster rank or higher." else use_rating = "[effective_rating]-Lambda" rating_descriptor = "This indicates the presence of trace latent psi capabilities." dat += "[use_He_has] an overall psi rating of [use_rating].
[rating_descriptor]
" dat += "[use_He_is] currently [psi.suppressed ? "suppressing" : "not suppressing"] your psychic operancy.
" dat += "[use_He_has] [psi.stamina]/[psi.max_stamina] psi stamina remaining.
" dat += "
" for(var/faculty_id in psi.ranks) var/datum/psionic_faculty/faculty = SSpsi.get_faculty(faculty_id) if(psi.ranks[faculty.id] > 0) dat += "[use_He_is] assayed at the rank of [psychic_ranks_to_strings[psi.ranks[faculty.id]]] for the [faculty.name] faculty.
" else dat += "[use_He_has] no notable power within the [faculty.name] faculty.
" dat += "
" if(viewer == usr) dat += "" for(var/faculty_id in psi.ranks) var/list/check_powers = psi.get_powers_by_faculty(faculty_id) if(LAZYLEN(check_powers)) var/datum/psionic_faculty/faculty = SSpsi.get_faculty(faculty_id) dat += "" for(var/datum/psionic_power/power in check_powers) dat += "" dat += "

Psi-power Usage

[use_He_has] access to the following psi-powers within the [faculty.name] faculty:
[power.name][power.use_description]
" var/datum/browser/popup = new(viewer, "psi_assay_\ref[src]", "Psi-Assay") popup.set_content(jointext(dat,null)) popup.open()