Files
kiwistation/code/modules/nano/states/inventory.dm
T
Bjorn Neergaard a97f22c2bb TK allows you to use NanoUI at a distance ❄️
❄️
2015-11-28 20:43:41 -06:00

13 lines
401 B
Plaintext

/**
* NanoUI State: inventory_state
*
* Checks that the src_object is in the user's top-level (hand, ear, pocket, belt, etc) inventory.
**/
/var/global/datum/topic_state/inventory_state/inventory_state = new()
/datum/topic_state/inventory_state/can_use_topic(atom/movable/src_object, mob/user)
if (!(src_object in user))
return NANO_CLOSE
return user.shared_nano_interaction(src_object)