Skip to content

Commit

Permalink
psy talk ability
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Aug 22, 2024
1 parent 94fcae8 commit cdb3ff9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions code/modules/mob/living/carbon/human/human_abilities.dm
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,31 @@
/datum/action/human_action/smartpack/repair_form/cooldown_check(obj/item/storage/backpack/marine/smartpack/S)
return S.repairing


/datum/action/human_action/psychic_whisper
name = "Psychic Whipser"
action_icon_state = "cultist_channel_hivemind"

/datum/action/human_action/psychic_whisper/action_activate()
. = ..()
if(!ishuman(owner))
return
var/mob/living/carbon/human/human_owner = owner

if(human_owner.client.prefs.muted & MUTE_IC)
to_chat(human_owner, SPAN_DANGER("You cannot whisper (muted)."))
return

var/list/target_list = list()
for(var/mob/living/carbon/possible_target in view(7, human_owner))
if(possible_target == human_owner || !possible_target.client) continue
target_list += possible_target

var/mob/living/carbon/target_mob = tgui_input_list(usr, "Target", "Send a Psychic Whisper to whom?", target_list, theme="hive_status")
if(!target_mob) return

human_owner.psychic_whisper(target_mob)

/*
CULT
*/
Expand Down
4 changes: 2 additions & 2 deletions code/modules/reagents/chemistry_properties/prop_neutral.dm
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,11 @@
..()

chem_host.pain.recalculate_pain()
remove_verb(chem_host, /mob/living/carbon/human/proc/psychic_whisper)
remove_action(chem_host, /datum/action/human_action/psychic_whisper)
to_chat(chem_host, SPAN_NOTICE("The pain in your head subsides, and you are left feeling strangely alone."))

/datum/chem_property/neutral/encephalophrasive/reaction_mob(mob/chem_host, method=INGEST, volume, potency)
add_verb(chem_host, /mob/living/carbon/human/proc/psychic_whisper)
give_action(chem_host, /datum/action/human_action/psychic_whisper)
to_chat(chem_host, SPAN_NOTICE("A terrible headache manifests, and suddenly it feels as though your mind is outside of your skull."))

/datum/chem_property/neutral/encephalophrasive/process(mob/living/chem_host, potency = 1, delta_time)
Expand Down

0 comments on commit cdb3ff9

Please sign in to comment.