Skip to content

Commit

Permalink
[MIRROR] Steam vent tooltips [MDB IGNORE] (#398)
Browse files Browse the repository at this point in the history
* Steam vent tooltips (#79420)

---------

Co-authored-by: ArcaneMusic <[email protected]>
  • Loading branch information
Steals-The-PRs and ArcaneMusic authored Nov 1, 2023
1 parent 093029e commit aa1fa1a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions code/game/objects/structures/maintenance.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit aa1fa1a

Please sign in to comment.