New systems and complex code (Patreon)
Content
Hey everyone!
Nothing super exciting to show visually today. I’ve been working on linking the food/energy and accident systems. This was a bigger challenge than I was expecting!
So diapers and energy/food systems touch almost every other system in the game. Not only that but I have tried to build each of these systems at least once before so I have a huge chunk of legacy code.
I’ve spent most of my time stripping out the older code and trying to unify most of the pieces. Thankfully I’ve been pretty successful, and have got most of the new systems in the game.
I’m not going to explain all the maths behind the exact system because it should still be a little bit of a surprise when it happens. I will give the breakdown on the basics.
So as per the previous post the game is going to feature energy as a standard resource for activities both in combat and in the world. It will be re-filled by eating/drinking and sleeping.
Once your food and water meters are above a certain value you will acquire a secret status where you will be warned you need to go. After a certain number of warnings your luck will run out and your character will have an accident. This system is designed to change as the game progresses. You’ll get less warning (or none), need to eat/drink less and the chance of having an accident will increase. Most of these values are designed to be hidden so that it’s more about playing it than seeing a bar fill up.
That is a very rough outline. The next update will have the system to test in game because it will take a few tweeks before the timing/values are dialed in to something that won’t feel too annoying or too rare.
That’s all for now. I haven’t quite finished the system. I need to test it for bugs and clean up the code and document everything so I can understand how this all works when I forget in the future and a bug crops up. But even in early testing this feels like it wiill work.