TJ,
Updates on the order system. After making a bunch of hand crafted orders by hand, I realized that that system wasn't practical either. it was working, but it didn't feel good to do. I had made about 88 orders and realized there were at least 80 more that I would have to do, and then I thought of something else that would probably double that, and then I thought that if we decide to ever add more ingredients or completely different food items, that work load would add exponentially. I had to switch to some system that can auto generate orders. And that system had to be robust enough to account for difficulty over time, and also flexible enough to easily add new ingredients or even new food items into it.
Everything I was coming up with was way to complex and became way too much work, both to code now and maintain later, and also would be confusing to anyone else who wants to edit or use the system in any way. Also debugging would have been a nightmare because systems depend on each other as you move through the order building process. If they customer removes an ingredient, you then cannot add that ingredient back or ask for extra. That would be very confusing to the player seeing an order like "Cheeseburger, no cheese, extra cheese." does that mean the customer wants 2 chesses or just 1?
i got help from our producer and I implemented his suggestion of making lists of addable ingredients, "extra-able" ingredients, and addable ingredients per specific burger. for example a cheeseburger cannot add or remove cheese because if it removed it, it would just be a hamburger, and It can't add it because it already has it. but it is extra-able. I also made it so that when you remove something it also gets removed from the extra-able list so you don't end up with the first example. Once i implemented that it seemed so easy. Then I just added specific conditions that had to be met for the customer to add, remove, or ask for extra... and now the system is as good as it can be and it shouldn't be too hard to expand the functionality of the order system to accommodate more ingredients, or even more foods in general.
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.