mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +01:00
This reverts commit 27c40bdaf6.
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
/datum/psi_complexus/proc/check_psionic_trigger(var/trigger_strength = 0, var/source, var/redactive = FALSE)
|
||||
/datum/psi_complexus/proc/check_latency_trigger(var/trigger_strength = 0, var/source, var/redactive = FALSE)
|
||||
|
||||
if(!LAZYLEN(latencies) || world.time < next_latency_trigger)
|
||||
return FALSE
|
||||
|
||||
if(!prob(trigger_strength))
|
||||
next_latency_trigger = world.time + rand(100, 300)
|
||||
return FALSE
|
||||
|
||||
var/faculty = pick(latencies)
|
||||
var/new_rank = rand(2,5)
|
||||
owner.set_psi_rank(new_rank)
|
||||
to_chat(owner, SPAN_DANGER("You scream internally as your psionics are forced into operancy by [source]!"))
|
||||
owner.set_psi_rank(faculty, new_rank)
|
||||
var/datum/psionic_faculty/faculty_decl = SSpsi.get_faculty(faculty)
|
||||
to_chat(owner, SPAN_DANGER("You scream internally as your [faculty_decl.name] faculty is forced into operancy by [source]!"))
|
||||
next_latency_trigger = world.time + rand(600, 1800) * new_rank
|
||||
if(!redactive) owner.adjustBrainLoss(rand(trigger_strength * 2, trigger_strength * 4))
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user