mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user