mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Yet another new changeling ability: Apex Predator (#23266)
* shed * Update code/modules/antagonists/changeling/powers/stalkingpresence.dm Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> * Update code/modules/antagonists/changeling/powers/stalkingpresence.dm Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> * Update code/modules/antagonists/changeling/powers/stalkingpresence.dm Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> * Update code/modules/antagonists/changeling/powers/stalkingpresence.dm Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> * Update code/modules/antagonists/changeling/powers/stalkingpresence.dm Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> * jimkil review * Update code/modules/antagonists/changeling/powers/apex_predator.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * Update code/modules/antagonists/changeling/powers/apex_predator.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * review * Update code/modules/antagonists/changeling/powers/apex_predator.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> * Update code/modules/antagonists/changeling/powers/apex_predator.dm Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> * cthhulhu phtagn --------- Co-authored-by: JimKil3 <47290811+JimKil3@users.noreply.github.com> Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
co-authored by
JimKil3
Contrabang
DGamerL
parent
a0f0bf3110
commit
35cfa30b38
@@ -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 += " <i>They are wounded...</i>"
|
||||
to_chat(user, "<span class='changeling'>[message]</span>")
|
||||
Reference in New Issue
Block a user