Skip to content

Commit

Permalink
toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Nivrak committed Jun 28, 2024
1 parent 66c0538 commit 26c9a0b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,10 @@
if(hivelord_delegate.resin_walker == TRUE)
button.icon_state = "template_active"
action_active = TRUE

/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
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,11 @@
return

xeno.recalculate_move_delay = TRUE

/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
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 @@ -84,7 +85,6 @@

/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))
Expand Down
3 changes: 2 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/castes/Hivelord.dm
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 All @@ -82,13 +83,13 @@
icon_xeno = 'icons/mob/xenos/hivelord.dmi'
icon_xenonid = 'icons/mob/xenonids/hivelord.dmi'


weed_food_icon = 'icons/mob/xenos/weeds_64x64.dmi'
weed_food_states = list("Hivelord_1","Hivelord_2","Hivelord_3")
weed_food_states_flipped = list("Hivelord_1","Hivelord_2","Hivelord_3")

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

/datum/behavior_delegate/hivelord_base
name = "Base Hivelord Behavior Delegate"
Expand Down

0 comments on commit 26c9a0b

Please sign in to comment.