the-marenga / sf-api

Manage Shakes & Fidget characters via simple commands. Handles encryption, response parsing and everything else for you
MIT License
15 stars 3 forks source link

Count the amount of free slots across MainInventory and ExtendedInventory #78

Closed alexb231 closed 3 months ago

alexb231 commented 3 months ago

Instead of just providing the index of a free slot it sometimes is necessary to know the amount of free slots available, for example when doing barehanded attacks for DailyTasks. Probably a very "hacky" solution..

the-marenga commented 3 months ago

Looks good and makes sense, Thanks! 😄

Just as a heads up, in the near future I am going to enforce cargo clippy and cargo +nightly fmt for code on the main branch, but not even all of the existing code complies with that yet, so no reason to block this here 👍🏻