P0-A2: Part 461: AI Overhaul
The AI overhaul is still going well.
I have come up with a new way of implementing the game logic for the actions.
I was using a system which used a large number of global variables and nested if statements, etc, as well as checking of variables during the update loop.
I am now using a “flag” based system, where a common flag is used to determine the internal state of each action. I am also using a coroutine, which only runs once a second, instead of the update loop. The code now does the same thing, but is far more efficient and easier to read and extend in the future.



