mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-16 04:12:21 +00:00
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).
13 lines
389 B
Plaintext
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)
|