mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-18 11:30:35 +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" />
40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
/singleton/psionic_power/rejuvenate
|
|
name = "Rejuvenate"
|
|
desc = "Restore a creature's blood."
|
|
icon_state = "tech_oxygenate"
|
|
point_cost = 1
|
|
ability_flags = PSI_FLAG_ANTAG
|
|
spell_path = /obj/item/spell/rejuvenate
|
|
|
|
/obj/item/spell/rejuvenate
|
|
name = "rejuvenate"
|
|
desc = "Blood bag who?"
|
|
icon_state = "mend_life"
|
|
item_icons = null
|
|
cast_methods = CAST_MELEE
|
|
aspect = ASPECT_PSIONIC
|
|
cooldown = 50
|
|
psi_cost = 30
|
|
|
|
/obj/item/spell/rejuvenate/on_melee_cast(atom/hit_atom, mob/living/user, def_zone)
|
|
if(!ishuman(hit_atom))
|
|
return
|
|
|
|
var/mob/living/carbon/human/target = hit_atom
|
|
if(!target.has_zona_bovinae())
|
|
to_chat(user, SPAN_WARNING("Psionic power cannot flow through this being."))
|
|
return
|
|
|
|
if(target.stat == DEAD || target.status_flags & FAKEDEATH)
|
|
to_chat(user, SPAN_WARNING("Psionic power does not flow through a dead person."))
|
|
return
|
|
|
|
. = ..()
|
|
if(!.)
|
|
return
|
|
|
|
user.visible_message(SPAN_NOTICE("[user] lays both palms on [target]..."), SPAN_NOTICE("You lay your palms on [target] and get to work."))
|
|
if(do_mob(user, target, 10 SECONDS))
|
|
target.restore_blood()
|
|
user.visible_message(SPAN_NOTICE("[user] removes their palms from [target]."), SPAN_NOTICE("You remove your palms from [target], having restored their blood."))
|