alesan99 / chicken_society

"Become a chicken not a nugget". A full online multiplayer game.
https://alesan99.github.io/chicken_society/
3 stars 0 forks source link

Items: Phase out item category usage in functions. #70

Closed alesan99 closed 7 months ago

alesan99 commented 9 months ago

It'd be better to get item data from just the item id string, without having to know the item's category.

alesan99 commented 7 months ago

This is important for shops. Right now you have to know the category of each item you want to add to an NPCs shop, all items should be in one array instead.

Edit: eehhh not really, they should be separated for the sake of tabs.

alesan99 commented 7 months ago

The category still serves a purpose for when its available, so I just made the itemID the first parameter on all item related functions b8e263f4321d186f2d8eaf41e36ac0d78abc02ff