Files
Aurora.3/code/modules/psionics/mob/mob.dm
Fluffy ab23fbdb70 Function overloads condensation (#18939)
Unified most of the procs into one definition, so there are no duplicate
around the codebase.
Marked some of the above as overridable if a good enough case can be
made for them (eg. external dependency or unlikely to be used).
2024-04-19 21:19:41 +00:00

13 lines
389 B
Plaintext

/mob/living
var/datum/psi_complexus/psi
/mob/living/proc/set_psi_rank(var/rank, var/defer_update, var/temporary)
if(HAS_TRAIT(src, TRAIT_PSIONICALLY_DEAF))
to_chat(src, SPAN_WARNING("Something tingles in your head."))
return
if(!psi)
psi = new(src)
var/current_rank = psi.get_rank()
if(current_rank != rank && current_rank < rank)
psi.set_rank(rank, defer_update, temporary)