Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Nivrak committed Apr 15, 2024
1 parent 81a8b69 commit 12a7c2a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,9 @@
/// Used for defender's tail 'stab'.
var/blunt_stab = FALSE

var/small_xeno_range = 1
var/large_xeno_range = 2

/datum/action/xeno_action/onclick/evolve
name = "Evolve"
action_icon_state = "evolve"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,15 @@
return FALSE

var/distance = get_dist(stabbing_xeno, targetted_atom)
if(distance > 2)
var/size = stabbing_xeno.mob_size
var/range = 0

if (size < MOB_SIZE_BIG)
range = small_xeno_range
else
range = large_xeno_range

if(distance > range)
return FALSE

var/list/turf/path = get_line(stabbing_xeno, targetted_atom, include_start_atom = FALSE)
Expand Down

0 comments on commit 12a7c2a

Please sign in to comment.