[MIRROR] [NO GBP] Fixes conveyor belt runtimes from screentips [MDB IGNORE] (#23849)

* [NO GBP] Fixes conveyor belt runtimes from screentips (#78478)

## About The Pull Request

In #78278 it looks like I missed confirming for `tool_behavior` when
mousing over on screentips, causing them to throw runtimes when not
holding the correct tool. Oops. This corrects that, now properly
providing screentips based on wrench and screwdriver mouseover.

## Why It's Good For The Game

Runtimes bad. 🐛 💥

## Changelog

🆑
fix: Conveyor belts now properly show their new screentips on mouseover
with tools.
/🆑

* [NO GBP] Fixes conveyor belt runtimes from screentips

---------

Co-authored-by: ArcaneMusic <41715314+ArcaneMusic@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-09-21 23:44:42 -07:00
committed by GitHub
co-authored by ArcaneMusic
parent 79eb064a3b
commit c5ff7f13aa
+2 -2
View File
@@ -58,10 +58,10 @@ GLOBAL_LIST_EMPTY(conveyors_by_id)
if(istype(held_item, /obj/item/stack/conveyor))
context[SCREENTIP_CONTEXT_LMB] = "Extend current conveyor belt"
return CONTEXTUAL_SCREENTIP_SET
if(held_item.tool_behaviour == TOOL_WRENCH)
if(held_item?.tool_behaviour == TOOL_WRENCH)
context[SCREENTIP_CONTEXT_LMB] = "Rotate conveyor belt"
return CONTEXTUAL_SCREENTIP_SET
if(held_item.tool_behaviour == TOOL_SCREWDRIVER)
if(held_item?.tool_behaviour == TOOL_SCREWDRIVER)
context[SCREENTIP_CONTEXT_LMB] = "Invert conveyor belt"
context[SCREENTIP_CONTEXT_RMB] = "Flip conveyor belt"
return CONTEXTUAL_SCREENTIP_SET