mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-12 08:27:13 +01:00
a802b48e2a
The next step in the Psi Reworks is here, this time adding all of the remaining sources and applications of Psi-sensitivity and Psi-protection that were on my To-Do list. Aside from a variety of tweaks and bugfixes to powers, the most player-facing addition is the new Psi-sensitivity related traits, which are High Psi-sensitivity, and Low Psi-sensitivity. These traits modify the character's psi-sensitivity, which messes with their interactions with psionics in a variety of ways. All of these new sources and interactions with psionics are handled entirely through components, which operate on the previously added COMSIG_PSI signals. Check the changelog file for more specific details on what all was fixed. I've fixed quite a lot of bugs and issues with the various psi powers. I have actually tested this PR and verified that it works as advertised. <img width="1902" height="1015" alt="image" src="https://github.com/user-attachments/assets/e922593c-0595-4b63-bee4-36080d9cb8b4" />
32 lines
984 B
Plaintext
32 lines
984 B
Plaintext
/singleton/psionic_power/psi_suppression
|
|
name = "Psionic Suppression"
|
|
desc = "Activate to toggle passive mind-shielding on yourself. While active, you cannot send or receive telepathic messages, and you are nearly impossible to detect as psychic."
|
|
icon_state = "tech_shield"
|
|
point_cost = 1
|
|
ability_flags = PSI_FLAG_CANON
|
|
spell_path = /obj/item/spell/psi_suppression
|
|
|
|
/obj/item/spell/psi_suppression
|
|
name = "psionic suppression"
|
|
icon_state = "generic"
|
|
item_icons = null
|
|
cast_methods = CAST_INNATE
|
|
aspect = ASPECT_PSIONIC
|
|
psi_cost = 5
|
|
|
|
/obj/item/spell/psi_suppression/on_innate_cast(mob/user)
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
|
|
var/suppression_comp = user.GetComponent(PSI_SUPPRESSION_COMPONENT)
|
|
if (suppression_comp)
|
|
to_chat(user, SPAN_NOTICE("You are no longer suppressing your psi-signature!"))
|
|
qdel(suppression_comp)
|
|
qdel(src)
|
|
return
|
|
|
|
to_chat(user, SPAN_NOTICE("You are now suppressing your psi-signature!"))
|
|
user.AddComponent(PSI_SUPPRESSION_COMPONENT)
|
|
qdel(src)
|