mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-19 14:42:25 +00:00
The inteliCard now has a NanoUI interface, allowing it to utilize custom CanUseTopic() checks depending on context, in-hand or in-rig.
11 lines
376 B
Plaintext
11 lines
376 B
Plaintext
/*
|
|
This state checks if src_object is contained anywhere in the user's inventory, including bags, etc.
|
|
*/
|
|
/var/global/datum/topic_state/deep_inventory_state/deep_inventory_state = new()
|
|
|
|
/datum/topic_state/deep_inventory_state/can_use_topic(var/src_object, var/mob/user)
|
|
if(!user.contains(src_object))
|
|
return STATUS_CLOSE
|
|
|
|
return user.shared_nano_interaction()
|