mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Replaces istypes with the proper tool_behaviour checks. (#40414)
This commit is contained in:
committed by
yogstation13-bot
parent
81a1280956
commit
5a29dc43e3
@@ -226,7 +226,7 @@
|
||||
else
|
||||
to_chat(user, "<span class='warning'>You need to attach a flash to it first!</span>")
|
||||
|
||||
else if (istype(W, /obj/item/multitool))
|
||||
else if (W.tool_behaviour == TOOL_MULTITOOL)
|
||||
if(check_completion())
|
||||
Interact(user)
|
||||
else
|
||||
@@ -382,7 +382,7 @@
|
||||
|
||||
var/mob/living/living_user = usr
|
||||
var/obj/item/item_in_hand = living_user.get_active_held_item()
|
||||
if(!istype(item_in_hand, /obj/item/multitool))
|
||||
if(!item_in_hand || !item_in_hand.tool_behaviour == TOOL_MULTITOOL)
|
||||
to_chat(living_user, "<span class='warning'>You need a multitool!</span>")
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user