Skip to content

Commit

Permalink
can commune fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Atlas committed Jul 24, 2023
1 parent 16909de commit ddfd932
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion code/modules/psionics/abilities/nlom_eyes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
for(var/mob/living/L in mob_list)
if(L == user)
continue
if(!L.can_commune())
if(!L.is_psi_blocked())
continue
if(GET_Z(L) != GET_Z(user))
continue
Expand Down
2 changes: 1 addition & 1 deletion code/modules/psionics/abilities/psi_awakening.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
if(!isliving(hit_atom))
return
var/mob/living/L = hit_atom
if(!L.can_commune())
if(L.is_psi_blocked())
to_chat(user, SPAN_WARNING("This being doesn't have a Zona Bovinae."))
return
if(L.psi && L.psi.get_rank() >= PSI_RANK_HARMONIOUS)
Expand Down
4 changes: 2 additions & 2 deletions code/modules/psionics/abilities/psi_drain.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
if(!isliving(hit_atom))
return
var/mob/living/L = hit_atom
if(!L.can_commune())
if(L.is_psi_blocked())
to_chat(user, SPAN_WARNING("This being doesn't have a Zona Bovinae."))
return
. = ..()
Expand All @@ -31,7 +31,7 @@
if(!isliving(hit_atom))
return
var/mob/living/L = hit_atom
if(!L.can_commune())
if(L.is_psi_blocked())
to_chat(user, SPAN_WARNING("This being doesn't have a Zona Bovinae."))
return
. = ..()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/psionics/abilities/psi_search.dm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
var/list/level_humans = list()
var/found_apex = FALSE
for(var/mob/living/carbon/human/H in human_mob_list)
if(GET_Z(H) == GET_Z(H) && H.can_commune())
if(GET_Z(H) == GET_Z(H) && !H.is_psi_blocked())
if(HAS_TRAIT(H, TRAIT_PSIONIC_SUPPRESSION))
continue
level_humans |= H
Expand Down
2 changes: 1 addition & 1 deletion code/modules/psionics/abilities/psi_sunder.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
if(!isliving(hit_atom))
return
var/mob/living/L = hit_atom
if(!L.can_commune())
if(L.is_psi_blocked())
to_chat(user, SPAN_WARNING("This being doesn't have a Zona Bovinae."))
return
. = ..()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/psionics/abilities/zona_absorption.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
if(!isliving(hit_atom))
return
var/mob/living/L = hit_atom
if(!L.can_commune())
if(L.is_psi_blocked())
to_chat(user, SPAN_WARNING("This being doesn't have a Zona Bovinae."))
return
if(HAS_TRAIT(L, TRAIT_ZONA_BOVINAE_ABSORBED))
Expand Down
2 changes: 1 addition & 1 deletion code/modules/psionics/equipment/cerebro_enhancers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
if(!ishuman(user))
return
var/mob/living/carbon/human/H = user
if(!H.can_commune())
if(H.is_psi_blocked())
to_chat(H, SPAN_WARNING("You don't have a Zona Bovinae!"))
return
if(H.psi.get_rank() >= PSI_RANK_HARMONIOUS)
Expand Down
11 changes: 4 additions & 7 deletions code/modules/psionics/mob/mob_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,10 @@
return !can_commune()

/mob/living/carbon/is_psi_blocked()
if(!psi && !has_psi_aug())
if(isSynthetic())
return SPAN_ALIEN("Reaching out, your mind grasps at nothing.")
if (isvaurca(src))
return SPAN_CULT("You reach out into the Nlom; your call sails right through and yields no response.")
if (is_diona())
return SPAN_ALIEN("[src]'s mind is incompatible, formless.")
if(HAS_TRAIT(src, TRAIT_ZONA_BOVINAE_ABSORBED))
return FALSE
if(HAS_TRAIT(src, TRAIT_PSIONICALLY_DEAF))
return FALSE
for (var/obj/item/implant/mindshield/I in src)
if (I.implanted)
return SPAN_WARNING("[src]'s mind is inaccessible, like hitting a brick wall.")
Expand Down

0 comments on commit ddfd932

Please sign in to comment.