mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-05 23:21:53 +00:00
* Handlers converted, now to fix 3532 compile errors * 3532 compile fixes later, got runtimes on startup * Well the server loads now atleast * Take 2 * Oops
11 lines
487 B
Plaintext
11 lines
487 B
Plaintext
/*
|
|
This state checks that the src_object is somewhere in the user's first-level inventory (in hands, on ear, etc.), but not further down (such as in bags).
|
|
*/
|
|
GLOBAL_DATUM_INIT(inventory_state, /datum/topic_state/inventory_state, new())
|
|
|
|
/datum/topic_state/inventory_state/can_use_topic(var/src_object, var/mob/user)
|
|
if(!((src_object in user) || user.is_in_active_hand(src_object) || user.is_in_inactive_hand(src_object)))
|
|
return STATUS_CLOSE
|
|
|
|
return user.shared_nano_interaction()
|