Is it good to have many small functions inside module

Hey, question, i found that i will need one thing in the future, which is increasing or decreasing item count in player’s inventory, i had function that uses it which was Drop and Pick function inside Items module, but what i did is i took few lines of code and turned it into 3 separate functions in the same module. Was this good idea?

I mean, If you are going to use the functions a lot within your game then, I don’t see a problem with that.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.