Skip to content

Commit

Permalink
Hivelord meson vision (#6570)
Browse files Browse the repository at this point in the history
# About the pull request
Gives hivelords meson vision
<!-- Remove this text and explain what the purpose of your PR is.

Mention if you have tested your changes. If you changed a map, make sure
you used the mapmerge tool.
If this is an Issue Correction, you can type "Fixes Issue #169420" to
link the PR to the corresponding Issue number #169420.

Remember: something that is self-evident to you might not be to others.
Explain your rationale fully, even if you feel it goes without saying.
-->

# Explain why it's good for the game
Makes it easier to see how what you are designing is coming together,
which should be a thing for a caste that is entirely focused on
building.
# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
balance: Hivelords now have meson vision
add: Added a toggle for meson vision for hivelord and burrower
/:cl:

---------

Co-authored-by: harryob <[email protected]>
  • Loading branch information
Git-Nivrak and harryob committed Jul 10, 2024
1 parent ede751e commit 6a23b3c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -566,3 +566,18 @@
var/mob/living/carbon/xenomorph/xeno = owner
xeno.xeno_tacmap()
return ..()

/datum/action/xeno_action/active_toggle/toggle_meson_vision
name = "Toggle Meson Vision"
action_icon_state = "project_xeno"
plasma_cost = 0
action_type = XENO_ACTION_CLICK
ability_primacy = XENO_PRIMARY_ACTION_5

/datum/action/xeno_action/active_toggle/toggle_meson_vision/enable_toggle()
. = ..()
owner.sight |= SEE_TURFS

/datum/action/xeno_action/active_toggle/toggle_meson_vision/disable_toggle()
. = ..()
owner.sight &= ~SEE_TURFS
5 changes: 1 addition & 4 deletions code/modules/mob/living/carbon/xenomorph/castes/Burrower.dm
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
/datum/action/xeno_action/onclick/place_trap, //second macro
/datum/action/xeno_action/activable/burrow, //third macro
/datum/action/xeno_action/onclick/tremor, //fourth macro
/datum/action/xeno_action/active_toggle/toggle_meson_vision,
/datum/action/xeno_action/onclick/tacmap,
)

Expand All @@ -82,10 +83,6 @@
weed_food_states = list("Burrower_1","Burrower_2","Burrower_3")
weed_food_states_flipped = list("Burrower_1","Burrower_2","Burrower_3")

/mob/living/carbon/xenomorph/burrower/Initialize(mapload, mob/living/carbon/xenomorph/oldxeno, h_number)
. = ..()
sight |= SEE_TURFS

/mob/living/carbon/xenomorph/burrower/ex_act(severity)
if(HAS_TRAIT(src, TRAIT_ABILITY_BURROWED))
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
/datum/action/xeno_action/activable/secrete_resin/hivelord, //third macro
/datum/action/xeno_action/activable/transfer_plasma/hivelord, // to be consistent with drone placement
/datum/action/xeno_action/active_toggle/toggle_speed, //fourth macro
/datum/action/xeno_action/active_toggle/toggle_meson_vision,
/datum/action/xeno_action/onclick/tacmap,
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@
var/turf/target_turf = get_turf(target_atom)
if(!target_turf)
return

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

/// Check if the target is a resin door and open or close it
if(istype(target_atom, /obj/structure/mineral_door/resin))
Expand Down

0 comments on commit 6a23b3c

Please sign in to comment.