mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
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 🆑 fix: Supermatter shards now have screentips with a wrench in hand /🆑
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user