From ba6019dfe2dc0ca9cb58d69ec693163393a465a3 Mon Sep 17 00:00:00 2001 From: Jeremiah <42397676+jlsnow301@users.noreply.github.com> Date: Wed, 8 May 2024 18:24:58 -0700 Subject: [PATCH] Screentips for sm shard (#83119) ## About The Pull Request Adds screen tips for anchoring sm shard ## Why It's Good For The Game I worry each time I go to click this thing ## Changelog :cl: fix: Supermatter shards now have screentips with a wrench in hand /:cl: --- .../power/supermatter/supermatter_variants.dm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/code/modules/power/supermatter/supermatter_variants.dm b/code/modules/power/supermatter/supermatter_variants.dm index 9d69066a535..ebc21b2b5b0 100644 --- a/code/modules/power/supermatter/supermatter_variants.dm +++ b/code/modules/power/supermatter/supermatter_variants.dm @@ -21,6 +21,21 @@ layer = ABOVE_MOB_LAYER moveable = TRUE + +/obj/machinery/power/supermatter_crystal/shard/Initialize(mapload) + . = ..() + + register_context() + + +/obj/machinery/power/supermatter_crystal/shard/add_context(atom/source, list/context, obj/item/held_item, mob/user) + . = ..() + + if(held_item?.tool_behaviour == TOOL_WRENCH) + context[SCREENTIP_CONTEXT_LMB] = anchored ? "Unanchor" : "Anchor" + return CONTEXTUAL_SCREENTIP_SET + + /// Shard SM with it's processing disabled. /obj/machinery/power/supermatter_crystal/shard/hugbox name = "anchored supermatter shard"