mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-23 16:03:48 +00:00
* Initial variable changes * Add defines * oh my god huds * Removes update_items(), it seems useless but this might need reverting later * the hud doesn't work but the inventory itself seems to * Renames a var, gets inventory working properly * Activation/Deactivation support, ore bag fixed * Fixes CL and also this would have been a massive, hilarious bug * Apply suggestions from code review Dr and Lewc reviews Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: Drsmail <60036448+Drsmail@users.noreply.github.com> Signed-off-by: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com> * Update code/_onclick/hud/robot_hud.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com> * Fixes a comment * Wait I forgot this worked like this for a reason * Lewc Suggestions Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com> * Burza Suggestions Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com> Signed-off-by: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com> --------- Signed-off-by: BiancaWilkson <42818125+BiancaWilkson@users.noreply.github.com> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Co-authored-by: Drsmail <60036448+Drsmail@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
17 lines
547 B
Plaintext
17 lines
547 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.selected_item) // Magnetic grippers
|
|
return user.shared_ui_interaction(src_object)
|
|
return UI_CLOSE
|
|
return user.shared_ui_interaction(src_object)
|