Honestly, Riot makes enough money that I don't think they have those issues.
And the world produces more than enough food to feed the entire population, yet people still starve.
The problem isn't the revenue rito is bringing in. It's the amount they're willing to spend. Just look at support ticket. Submit a ticket and it takes you a week before actually getting a person. Because they don't allocate enough resources to run that department properly. If they have a set budget to run their company, every skin team member is taking away from other departments. So it's not like they're willing to "just hire another one". They're in the business to make as much money as possible. Hiring an additional coder would not make them more money unless people stopped playing because of said coding. Spaghetti code was just an example. This applies to player behavior (not the "toxic chat" ones, they have PLENTY of resources going there, but other player behavior such as trolling), balance, and pretty much everything.