Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Diegoflores31 committed Aug 4, 2024
1 parent 902c0ff commit df197b2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,9 @@

current = get_step_towards(current, target_turf)

/datum/action/xeno_action/activable/tail_stab/can_use_action()
return TRUE

/datum/action/xeno_action/activable/tail_stab/use_ability(atom/targetted_atom)
var/mob/living/carbon/xenomorph/stabbing_xeno = owner

Expand All @@ -925,6 +928,9 @@
if (world.time <= stabbing_xeno.next_move)
return FALSE

if(stabbing_xeno.m_intent == MOVE_INTENT_STALK)
stabbing_xeno.set_movement_intent(MOVE_INTENT_HUNT, 10 SECONDS)

var/distance = get_dist(stabbing_xeno, targetted_atom)
if(distance > 2)
return FALSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
/datum/action/xeno_action/activable

/datum/action/xeno_action/activable/can_use_action()
return TRUE
. = ..()

// Called when the action is clicked on.
// For non-activable Xeno actions, this is used to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@

/datum/action/xeno_action/activable/apply_salve/use_ability(atom/target_atom)
var/mob/living/carbon/xenomorph/xeno = owner

if(xeno.m_intent == MOVE_INTENT_STALK)
return FALSE

xeno.xeno_apply_salve(target_atom, health_transfer_amount, max_range, damage_taken_mod)
return ..()

Expand Down

0 comments on commit df197b2

Please sign in to comment.