Adds notification to those with psionics when someone enters/exits Srom + animation for Srom exit (#13600)

This commit is contained in:
Llywelwyn
2022-04-28 21:31:11 +02:00
committed by GitHub
parent cdd6d89e04
commit b39c990843
2 changed files with 17 additions and 3 deletions
+10 -3
View File
@@ -19,6 +19,10 @@ var/list/dream_entries = list()
to_chat(bg, "<span class='warning'>Whilst in shared dreaming, you find it difficult to hide your secrets.</span>")
if(willfully_sleeping)
to_chat(bg, "To wake up, use the \"Awaken\" verb in the IC tab.")
for(var/thing in SSpsi.processing)
var/datum/psi_complexus/psi = thing
to_chat(psi.owner, SPAN_CULT("You sense an increase in the activity of Srom..."))
sound_to(psi.owner, sound('sound/effects/psi/power_used.ogg'))
log_and_message_admins("has entered the shared dream", bg)
// Does NOT
else
@@ -27,7 +31,10 @@ var/list/dream_entries = list()
if(willfully_sleeping && sleeping && stat == UNCONSCIOUS)
sleeping = 5
return
log_and_message_admins("has left the shared dream",bg)
for(var/thing in SSpsi.processing)
var/datum/psi_complexus/psi = thing
to_chat(psi.owner, SPAN_CULT("You feel the activity of Srom decrease."))
log_and_message_admins("has left the shared dream", bg)
var/mob/living/brain_ghost/old_bg = bg
bg = null
vr_mob = null
@@ -40,7 +47,7 @@ var/list/dream_entries = list()
return_text = "You are ripped from the Srom as you return to the captivity of your own mind."
return_mob.ckey = old_bg.ckey
old_bg.show_message("<span class='notice'>[bg] fades as their connection is severed.</span>")
animate(old_bg, alpha=0, time = 200)
old_bg.visible_message("<span class='notice'>[old_bg] begins to fade as they depart from the dream...</span>")
animate(old_bg, alpha=0, time = 20)
QDEL_IN(old_bg, 20)
to_chat(return_mob, SPAN_WARNING("[return_text]"))