Files
Paradise/code/modules/tgui/states/inventory_state.dm
T
AffectedArc07andGitHub b34e8fa301 [READY] CI now bans files with the same name (#20195)
* CI now bans files with the same name

* Part 1

* Warriorstar python tweaks

* Part Deux

* Fix unticked

* fix
2023-02-04 16:33:41 -06:00

17 lines
551 B
Plaintext

/**
* tgui state: inventory_state
*
* Checks that the src_object is in the user's top-level (hand, ear, pocket, belt, etc) inventory.
*/
GLOBAL_DATUM_INIT(inventory_state, /datum/ui_state/inventory_state, new)
/datum/ui_state/inventory_state/can_use_topic(src_object, mob/user)
if(!(src_object in user))
if(issilicon(user))
var/mob/living/silicon/robot/R = user
if(src_object in R.module_active) // Magnetic grippers
return user.shared_ui_interaction(src_object)
return STATUS_CLOSE
return user.shared_ui_interaction(src_object)