IntelligenceModding / Advanced-Peripherals-Features

A place for the feature request for Advanced Peripherals
0 stars 1 forks source link

return slot that items are in with inventoryManager.getItems #49

Closed ralphgod3 closed 3 months ago

ralphgod3 commented 2 years ago

Describe your idea

Since it is currently possible to extract items from a specific slot with the inventory manager it would also be nice to know what slot every item is in to do some more advanced stuff like never touching stuff in hotbar or extracting items with specific damage values.

Describe alternatives you've considered if you've any

Add an additional argument to removeItemsFromPlayer to filter on a damage value. This might only be a bandaid fix tho so my proposed feature is prefered over this.

Additional context

I am trying to make a wireless ae like terminal but items with different damage values can not be properly handled without either having an additional argument to removeItemsFromPlayer or being able to see what slot some item is in.

below a possible code snippet of how it would work. basicly instead of creating a table indexed to 0 index it to the slot an item is in image

Linked Issues

No response

Einhornyordle commented 3 months ago

This issue is outdated, the inventory manager already returns a lot of additional info on items including the slot the item is in. Therefore I'll close it.