Skip to content

Commit

Permalink
The research pub thing I've forgotten about for a while
Browse files Browse the repository at this point in the history
  • Loading branch information
morrowwolf committed Sep 29, 2023
1 parent dfcc490 commit 9bcbe8f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions code/game/objects/items/devices/helmet_visors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,18 @@
name = "advanced medical optic"
helmet_overlay = "med_sight_left"

/obj/item/device/helmet_visor/medical/advanced/activate_visor(obj/item/clothing/head/helmet/marine/attached_helmet, mob/living/carbon/human/user)
. = ..()

var/datum/action/item_action/view_publications/publication_action = new(attached_helmet)
publication_action.give_to(user)

/obj/item/device/helmet_visor/medical/advanced/deactivate_visor(obj/item/clothing/head/helmet/marine/attached_helmet, mob/living/carbon/human/user)
. = ..()

var/datum/action/item_action/view_publications/publication_action = locate() in attached_helmet.actions
qdel(publication_action)

/obj/item/device/helmet_visor/medical/advanced/can_toggle(mob/living/carbon/human/user)
. = ..()
if(!.)
Expand Down

0 comments on commit 9bcbe8f

Please sign in to comment.