Hi fellow Brewers!
So this is the second weekly recap and I have quite a bit to talk about in regards to features and updates. So let's start out with the progress from the last week. I'm almost done refactoring the entire interaction system. This system deals with what options you see when selecting a object. The previous system was just a bunch of "if/else" statements that would go on for miles. It's actually quite silly and amateur, but the new system is a lot nicer and cleaner and will allow for mod makers in the future to add a lot of functionality.
A basic technical overview of how it works; each script that makes up an object (i.e. A kettle has different scripts that handle functions for being a kettle, container, maintenance, etc.) will all submit a list of questions that can be asked about their state. So a maintenance script could be asked, are you broken? are you being fixed? Or a container script could be asked, are you clean? are you filled? Each script also submits an option for an action and a set of conditions needed for that option to be available as a button. So to clean a kettle, that option would need to know: is the container dirty? is anyone currently cleaning it? is it currently cooking? and some other conditions. These conditions are only checked once so a lot of redundancy was eliminated. And from a coding perspective, it's a lot easier to read.
Some other stuff that was handled this week had to deal with automated setup (similar to the interaction system). I realized that I was having to make a lot of manual references in code. I changed a lot of code to automatically set up their various needs. This saves a lot time when creating new content and prevents human error which I came across while reviewing some game content.
Finally for the past week, I did start the ground work for the location customization system. But this system is still very early and I needed to rework the interaction system first to allow it to work. More on this in the future.
So now for the upcoming week. I'll be putting the finishing touches on interaction system and making sure it is robust. Then I'd like to start working on a complex difficulty system. As of now, the difficulty differences only change the amount of money you start out with. I feel like the pacing is just too hard to place for each player's gaming style. I would like this to be a lot more flexible in changing the game pacing. The basic idea I have is to allow the player to select multipliers to various payouts and costs. One thing a player could change is the brew master point rewards for completing a contract. Say normally the starter contract gives only 1 bmp but the player changed the multiplier to 2x, now that player would receive 2 bmp's. Same with costs, an ingredient might be $10 but the player selected 50% discount on cost to make it easier, now that ingredient is $5. This is all in the name of making the game difficulty relative to the player's play style.
This modifier system also will have a part in a random event system I would like to add in the future. I'd like to have a system that could change the game slightly from time to time. The idea would be to present the player with a news headline like "Fungal Infection Ruin Hops Crop!" and this would cause all hops to cost 1.5x more for a few days. This is still a working idea so more on it in the future.
With the new interaction and difficulty system in place, I'd like to have version .12 out by next weekend. This way I can fully focus on the location system after. So be on the look out at the end of the week for the update and I'll post here if that changes at all.
Happy Brewing!
-Vertnacular
