Resolving Decisions

The integration process is more than halfway done, with most of the biggest hurdles already being taken care off. This weekend I worked on the code that allows the AI, or a human player, to pick a choice from the options given in a decision. It's untested code, so I have no idea yet if that's going to work or not, but that's what I hope to be able to test soon.

I also got to work on many minor details regarding the integration into the simulation of modded decisions. Since I can't replace all the hardcoded decisions in one single swoop, I ended up duplicating all the decision handling code, with one version dedicated to handling the old code while the other handles the new modded decisions. Eventually, I will have to delete all the duplicated code, but for now, both will have to coexist.

There are still two parts that need to be taken care of for the integration to be complete. First I need to make sure the game uses the decision loading code I currently only use within unit tests, then In need to make sure the old dialog UI for decisions can work with the newer ones. If I'm lucky I'll be able to complete both next week. Though it's very likely nothing will work straight away, so it will probably going to take another week to solve all the issues that emerge once I start running the simulation using the new code.