Skip to content

Commit

Permalink
Weaknesses and whatnot are not to be found
Browse files Browse the repository at this point in the history
Carrying the morning star within
  • Loading branch information
Matt Atlas committed Jul 23, 2023
1 parent 996bd56 commit aaa7105
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 5 deletions.
3 changes: 3 additions & 0 deletions code/__defines/traits.dm
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@
/// Mob is psionically deaf.
#define TRAIT_PSIONICALLY_DEAF "psionically_deaf"

/// Zona bovinae absorbed, used by Loner to track a mob that has had its ZB consumed. Doesn't make them psi-deaf.
#define TRAIT_ZONA_BOVINAE_ABSORBED "bovinae_absorbed"

/// Hidden from Psi-Search.
#define TRAIT_PSIONIC_SUPPRESSION "psionic_suppression"

Expand Down
2 changes: 1 addition & 1 deletion code/datums/mind.dm
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
current.set_psi_rank(text2num(href_list["set_psi_rank"]))
return
else if(href_list["set_psi_rank_limitless"])
var/sure = input(usr, "Limitless is INTENTIONALLY STUPIDLY OVERPOWERED! YOU SHOULD NOT BE USING THIS WITHOUT KNOWING EXACTLY WHAT YOU'RE DOING!", "Don't Get A Staff Complaint") as anything in list("I know what I'm doing!", "Nevermind...")
var/sure = input(usr, "Limitless is INTENTIONALLY STUPIDLY OVERPOWERED! YOU SHOULD NOT BE USING THIS WITHOUT KNOWING EXACTLY WHAT YOU'RE DOING!", "Don't Get A Staff Complaint") as anything in list("I know what I'm doing!", "I fear no man. But that thing... it scares me!")
if(sure == "I know what I'm doing!")
current.set_psi_rank(PSI_RANK_LIMITLESS)
return
Expand Down
2 changes: 1 addition & 1 deletion code/modules/psionics/abilities/assay.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

var/mob/living/carbon/human/target = hit_atom

if(target.stat == DEAD)
if(target.stat == DEAD || target.status_flags & FAKEDEATH)
to_chat(user, SPAN_WARNING("Psionic power does not flow through a dead person."))
return

Expand Down
2 changes: 1 addition & 1 deletion code/modules/psionics/abilities/mend.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

var/mob/living/carbon/human/H = hit_atom

if(H.stat == DEAD)
if(H.stat == DEAD || H.status_flags & FAKEDEATH)
to_chat(user, SPAN_WARNING("Psionic power does not flow through a dead person."))
return

Expand Down
2 changes: 2 additions & 0 deletions code/modules/psionics/abilities/nlom_eyes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
for(var/mob/living/L in mob_list)
if(L == user)
continue
if(!L.can_commune())
continue
if(GET_Z(L) != GET_Z(user))
continue
mob_choices += L
Expand Down
2 changes: 1 addition & 1 deletion code/modules/psionics/abilities/rejuvenate.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

var/mob/living/carbon/human/target = hit_atom

if(target.stat == DEAD)
if(target.stat == DEAD || target.status_flags & FAKEDEATH)
to_chat(user, SPAN_WARNING("Psionic power does not flow through a dead person."))
return

Expand Down
6 changes: 5 additions & 1 deletion code/modules/psionics/abilities/zona_absorption.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
if(!L.can_commune())
to_chat(user, SPAN_WARNING("This being doesn't have a Zona Bovinae."))
return
if(HAS_TRAIT(L, TRAIT_ZONA_BOVINAE_ABSORBED))
to_chat(user, SPAN_WARNING("You already absorbed points from this creature!"))
return
. = ..()
if(!.)
return
Expand All @@ -34,4 +37,5 @@
SPAN_DANGER("You absorb psionic energy from [L], granting you an extra Psionic Point Shop point."))
var/mob/living/M = user
M.psi.psi_points++
to_chat(L, SPAN_DANGER("A splitting headache courses through your mind!"))
to_chat(L, SPAN_DANGER("A splitting headache courses through your mind! Your head feels a bit lighter..."))
ADD_TRAIT(L, TRAIT_ZONA_BOVINAE_ABSORBED, TRAIT_SOURCE_PSIONICS)

0 comments on commit aaa7105

Please sign in to comment.