Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unowns queen remote build #6677

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,20 @@
name = "Coerce Resin (100)"
action_icon_state = "secrete_resin"
ability_name = "coerce resin"
var/last_use = 0
xeno_cooldown = 1 SECONDS
thick = FALSE
make_message = FALSE

no_cooldown_msg = TRUE

var/care_about_adjacency = TRUE
build_speed_mod = 2 // the actual building part takes twice as long

macro_path = /datum/action/xeno_action/verb/verb_coerce_resin
action_type = XENO_ACTION_CLICK

var/last_use = 0
var/care_about_adjacency = TRUE

/datum/action/xeno_action/activable/secrete_resin/remote/use_ability(atom/target_atom, mods)
if(!can_remote_build())
to_chat(owner, SPAN_XENONOTICE("We must be standing on weeds to establish a connection to the resin."))
Expand All @@ -70,8 +71,8 @@
var/turf/target_turf = get_turf(target_atom)
if(!target_turf)
return
if(!(target_turf in view(10, owner)))

if(care_about_adjacency && !(target_turf in view(10, owner)))
to_chat(owner, SPAN_XENONOTICE("We must have a direct line of sight!"))
return

Expand Down
Loading