Steam vent tooltips (#79420)

## About The Pull Request

Steam vents now have basic tooltips to show you how to toggle them
in-hand. I've also added a tooltip to show you to use the wrench to
deconstruct.

## Why It's Good For The Game

Improves the clarity of an otherwise common maintenance object, both in
regular use as well as when deconstructing.

## Changelog

🆑
qol: Steam vents in maintenance now have tooltips.
/🆑
This commit is contained in:
ArcaneMusic
2023-10-31 21:50:45 -07:00
committed by GitHub
parent 089de2f856
commit 3722399baf
@@ -267,6 +267,7 @@ at the cost of risking a vicious bite.**/
COMSIG_ATOM_EXIT = PROC_REF(blow_steam),
)
AddElement(/datum/element/connect_loc, loc_connections)
register_context()
update_icon_state()
/obj/structure/steam_vent/attack_hand(mob/living/user, list/modifiers)
@@ -283,6 +284,16 @@ at the cost of risking a vicious bite.**/
return
blow_steam()
/obj/structure/steam_vent/add_context(atom/source, list/context, obj/item/held_item, mob/user)
. = ..()
if(isnull(held_item))
context[SCREENTIP_CONTEXT_LMB] = vent_active ? "Close valve" : "Open valve"
return CONTEXTUAL_SCREENTIP_SET
if(held_item.tool_behaviour == TOOL_WRENCH)
context[SCREENTIP_CONTEXT_RMB] = "Deconstruct"
return CONTEXTUAL_SCREENTIP_SET
return .
/obj/structure/steam_vent/wrench_act_secondary(mob/living/user, obj/item/tool)
. = ..()
if(vent_active)