diff --git a/code/modules/antagonists/changeling/powers/apex_predator.dm b/code/modules/antagonists/changeling/powers/apex_predator.dm new file mode 100644 index 00000000000..63dd3a9d65b --- /dev/null +++ b/code/modules/antagonists/changeling/powers/apex_predator.dm @@ -0,0 +1,24 @@ +/datum/action/changeling/apex_predator + name = "Apex Predator" + desc = "We evolve a keen intuition, allowing us to detect the anxieties of nearby lifeforms." + helptext = "We will be able to detect the direction and room our prey is in, as well as if they have any injuries." + button_icon_state = "predator" + dna_cost = 1 + power_type = CHANGELING_PURCHASABLE_POWER + menu_location = CLING_MENU_UTILITY + +/datum/action/changeling/apex_predator/sting_action(mob/user) + var/target_by_name = list() + for(var/mob/living/carbon/human/H in GLOB.human_list) + if((H.z != user.z) || !H.mind) + continue + target_by_name[H.real_name] = H + + var/target_name = tgui_input_list(user, "Person to Locate", "Prey", target_by_name) + if(!target_name) + return + var/mob/living/carbon/human/target = target_by_name[target_name] + var/message = "[target_name] is in [get_area(target)], [dir2text(get_dir(user, target))] of us." + if(target.get_damage_amount() >= 40 || target.bleed_rate) + message += " They are wounded..." + to_chat(user, "[message]") diff --git a/icons/mob/actions/actions.dmi b/icons/mob/actions/actions.dmi index 247d0b32dd7..07e98e9ebc9 100644 Binary files a/icons/mob/actions/actions.dmi and b/icons/mob/actions/actions.dmi differ diff --git a/paradise.dme b/paradise.dme index 4ec2d991fa3..d4f740e07e7 100644 --- a/paradise.dme +++ b/paradise.dme @@ -1361,6 +1361,7 @@ #include "code\modules\antagonists\changeling\datum_changeling.dm" #include "code\modules\antagonists\changeling\evolution_menu.dm" #include "code\modules\antagonists\changeling\powers\absorb.dm" +#include "code\modules\antagonists\changeling\powers\apex_predator.dm" #include "code\modules\antagonists\changeling\powers\augmented_eyesight.dm" #include "code\modules\antagonists\changeling\powers\become_headslug.dm" #include "code\modules\antagonists\changeling\powers\biodegrade.dm"